Another Problem with previous_post_link in categories
-
Ok- I searched the forums and didn’t come up with anything that was specifically my issue.
I have single post pages with previous_post_link and next_post_link functioning fine. Then when I click a category, all previous/next links vanish and I’m only seeing one post of that category.
I’m using the MODIO template from Upstart Blogger. The category page seems to use the Main Index Template, where the single page has its own template file. Originally the Main Index Template spat out a link list of “fresh” posts – but I changed it to just show the most recent post only. (Did this by copying the code from the single page to the main template page template).
I’m sure the problem lies in how I copied and pasted code, but I’m not sure how to proceed. Adding “same_cat=TRUE” doesn’t work in the Main Index file. Also the tag is inside the loop.
A basic single page where the links work
A category page where the links are missing
Code I have in both template pages:
`<ul class="post">
- <b>PAGES</b> / FORWARD OR BACK?
- <?php previous_post_link('Next: %link','%title') ?>
- <?php next_post_link('Previous: %link','%title') ?>
`
I appreciate your patience!
- The topic ‘Another Problem with previous_post_link in categories’ is closed to new replies.