previous_post() and next_post()
-
Hey all. I’m having an issue with the nav links after upgrading to 3.0 at https://danny.archibald-design.com/.
I have this code at the top of my index.php:
“<?php get_header(); ?>
<div id=”bd” class=”yui-navset”>
<ul class=”yui-nav” style=”text-align:right”><?php wp_list_pages(‘title_li=&depth=1’); ?>
<div id=”yui-main”>
<div class=”yui-b” >
<div class=”yui-g”>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<!– item –>
<div class=”navigation”>
<div><?php previous_post(‘« % | Main‘, ”, ‘yes’); ?><?php next_post(‘ | % » ‘, ”, ‘yes’); ?></div>
</div>
<div class=”chronodata”>”This nav was great before and was showing up on individual post pages, but not on the main page that shows the latest 3 posts, which is how it is supposed to work. After upgrading to 3.0 it now shows above each post on the main page (as you can see on the site).
Any help correcting this would be great. I’m not sure where to start. Let me know if you have any questions or need more info.
ps. i have tried changing it to use previous_post_link() and that did not fix it.
Thanks, Danny
- The topic ‘previous_post() and next_post()’ is closed to new replies.