Quick Question – Specifing a Specific Category ..
-
Hey All,
I’ve got the following code which displays the most recent 2 posts:
<?php query_posts('showposts=2'); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <li> <a href="<?php the_permalink() ?>"><?php the_title() ?></a> <br /> <span class="date"><?php the_time('l, F jS') ?></span> </li> <?php endwhile; endif; ?>
I now just want to specify and make the 2 recent posts come from a specific category and I’m not sure on the best way to do that with what I have.
Any suggestions would be appreciated.
Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Quick Question – Specifing a Specific Category ..’ is closed to new replies.