• 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!

Viewing 1 replies (of 1 total)
  • Thread Starter aprila711

    (@aprila711)

    Ok – let me revise this question. I figured out that previous_post_link and next_post_link will not work where I had them and I needed to use posts_nav_link instead.

    Now what I’m trying to figure out is — can I still get the title of the next post to show up as the “next” link using posts_nav_link?

    I’d like my previous/next links to look consistent across the site, whether people are viewing by category or not.

Viewing 1 replies (of 1 total)
  • The topic ‘Another Problem with previous_post_link in categories’ is closed to new replies.