WordPress.org

Ready to get started?Download WordPress

Forums

navigate (i.e «Previous & next») limit to a single category (3 posts)

  1. tpalombo
    Member
    Posted 5 years ago #

    I have a category (7) in my blog that is distinct from the rest of the blog. And so I'd like to have the navigation at the top of the page only navigate to posts within that category.

    I've already set up a template page (category-7.php) for the category ... however, when I click on a post, it uses single.php to displays the comments, and herein lies the problem.
    From within single.php I have the navigation at the top of the page that links to the next and previous posts for the entire blog. Is there anyway to restrict this to just posts from within category 7?

    Secondly is there any way to have a customize single.php for this category?

  2. Ojster
    Member
    Posted 5 years ago #

    I am also looking for this navigation solution. When I am reading an entry on a single.php page and I came there from the category listing of articles, I would like the navigation to show only next nad previous articles from the same category. The problem would arrise when one entry has more than just one category though...

    Regarding different template for categories you can check the solution here: http://wordpresshero.com/tricks/different-single-post-pages-in-wordpress.html/

  3. Herbert
    Member
    Posted 5 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic