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
hoeyjope
Member
Posted 1 year ago #
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?