Wordpress Question

Ben89

New member
Mar 30, 2007
670
4
0
So I have a section on my site called "Articles" which is basically a wordpress page where I want the title and a small piece of each article to go after I publish it onto my blog. I was doing this manually which I then realized is stupid so I'm just wondering if there is some sort of plugin that upon request takes a each page's title and the first few lines of the article and places it onto a certain page that you choose.

So it would look like this...

How To Buy A Dog (title)
To buy a dog you would first need to visit a pet shop in your local area...Read More (link)

and then each new article that I add automatically is posted above this one.
 


Make a category called "Articles". Put all your posts in that category. Then link to "/category/articles" (instead of your /articles page).

If you really need the URL to be /articles, make a copy of your index.php page. Name it "page_articles.php".

At the very top put this:
Code:
<?php
/*
Template Name: Articles
*/
?>

In the code look for something like this:
Code:
<?php if (have_posts()) : ?>

Directly above that paste:
Code:
<!-- only get posts from articles category -->
<?php query_posts("category_name=articles&posts_per_page=10"); ?>

Then edit your Articles page and assign the page template "Articles" to it. Now this page will show this custom loop.

You can customize the excerpts more precisely with the Advanced Excerpt plugin.

Sean
 
Last edited: