• I would like to be able to display the latest post from a specific category within a page – I’ve searched high and low but haven’t found quite what I’m looking for – can anybody point me in the right direction or show me how I may achieve this? Thanks

Viewing 1 replies (of 1 total)
  • It can be done by putting the following code in the main section of a page template:
    cat=5 is the category id

    <?php query_posts('cat=5&showposts=1'.get_option('posts_per_page=')); ?>
    //while loop....
        <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    This solution requires a little php knowledge.
    Any ideas how to link a post to show up on a specific page?

Viewing 1 replies (of 1 total)
  • The topic ‘Display latest post from specific cat on a page’ is closed to new replies.