WordPress.org

Ready to get started?Download WordPress

Forums

Next and Previous posts for specific categories only (2 posts)

  1. MKULTRON
    Member
    Posted 3 years ago #

    Hi guys,

    I have custom template pages, is there any way to have it so when you click to view a previous post the link you are taken to loads the current template you were on? it keeps going back to my default template, not the one peculiar to that particular user. Maybe something with querystrings?

    Also as an extension to the last question, when I click on "previous posts" I am taken to the last archived post (I forget which WordPress page this is?) but on this page the previous and forward links relate to posts from other users, not just the user I want them to relate to. Again, is there anyway I can get only the previous and next posts for this user (possibly more querystring stuff)??

    Tips or links be much appreciated

    Thanks guys!
    MKULTRON x

  2. MKULTRON
    Member
    Posted 3 years ago #

    Is there a way to specify a template to load this in:

    <?php previous_post_link('%link', 'Previous in cat', true, 'Uncategorized'); ?>

    e.g. the current template I'm on so that clicking on a "previous" link doesn't take me directly to the archives pages which is the wrong template?

Topic Closed

This topic has been closed to new replies.

About this Topic