Recent Topics

1 Nov 01, 2006 23:51    

I've set up a five blog multi-blog, with each blogger allocated one day of the week, and I want to put a link on the individual post pages to move to the next and previous postings - which means linking to the adjacent blog (posted the next day), not the next posting by that blogger (which is seven days away).

next_post lets me skip to the next post by that blogger, and I would have thought including the $in_same_blog=false parameter would cause it to select the next day's post in the adjacent blog rather than the next post "in the same blog". It almost works.

If I make three posts like this;

http://www..../BlogA/2006/11/02/post_29
http://www..../BlogB/2006/11/02/post_30
http://www..../BlogC/2006/11/02/post_31

I see the Previous and Next links on post 30 (in BlogB) but when I click on Next I get taken to

http://www..../BlogB?p=31&more=1&c=1

I get the correct title under Post details but then I get "Sorry, there is no post to display... " This is because it's still looking for the post in BlogB. It should be going to

http://www..../BlogC?p=31&more=1&c=1

What am I doing wrong? I'm new at this, but I would expect $in_same_blog is designed to fix the problem I'm experiencing. Here is the code that I'm using:

<?php previous_post ( $format='%', $previous='&lt;Prev Post', $title='', $in_same_cat='no', $limitnext=1, $excluded_categories='', $in_same_blog=false ); // activate this if you want a link to the next post in single page mode ?>

<?php next_post ( $format='%', $next='Next Post&gt;', $title='', $in_same_cat='no', $limitnext=1, $excluded_categories='', $in_same_blog=false ); // activate this if you want a link to the next post in single page mode ?>

Is there a next_day or next_blog command? That might solve the problem.

Sorry for the long post.


Form is loading...