you would want to do a query_posts(‘showposts=1’); before calling the loop
Thanks..
is it also possible for it to work out the permy link of the next | prev post Chronologically in that category?
I tried using posts_nav_link() but it seems to link to a page which has no content and no template associated with it.
Any thoughts?
Thanks again
You should use that template_tag 🙂 But to make the paging work properly you might have to do it like this:
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts("paged=$paged&cat=1");
I guess I’m being stupid:
Ive got.
<? query_posts(‘showposts=1’);?>
<? $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
query_posts(“paged=$paged&cat=1”); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
etc….
<?php posts_nav_link(‘|’,’pre’,’next’); ?>
<?php endif; ?>
<?php endwhile; ?>
And it has just made the content on the post not appear at all…
Ah yes, sorry I was being stupid….
This code actually results in what I had before. Displaying 1 post, correctly, but linking to http://www.threedays.co.uk/category/bible-study/page/2/ which returns a 404 error
Can anybody help with why this 404 error is appearing?
hey, i love your theme
may i use it please?
I WILL GIVE YOU FULL CREDIT
my site is http://www.justshannen.com
it’s a different subject than yours.
thank you 🙂