Posting excerpts of a specific category’s posts on a page
-
OK, I did a lot of searching around and figured out how to use “query_posts”, but it’s not doing quite what I want.
Here’s the scoop:
I’ve got a category called “news” here
I need a page that looks exactly like that (title, excerpt, more link). So I created a new template for the page and added the following:
<?php query_posts(‘showposts=10&cat=2’); if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php the_excerpt(); ?>
<?php endwhile; else : endif; ?>But the result is this page. It lacks the posts’ titles, more links, and isn’t displaying what I have set before the <!–more–> tag.
Any ideas on how to replicate that category as a page?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Posting excerpts of a specific category’s posts on a page’ is closed to new replies.