Restrict Prev/Next_Post_Link tag to categories (2 posts)

  1. barmin
    Posted 9 years ago #

    Is there a way to get the Template Tag to show the next/previous post in the same category as the current post, but just for selected categories? Excluding categories won't work, because it would bypass any post which is in both categories (selected and excluded one).

    I want the next_post_link to look only for posts in such selected categories.

  2. barmin
    Posted 9 years ago #

    Excuse me for bringing this up again, but I really need help on this, since it is for a client.

Topic Closed

This topic has been closed to new replies.

About this Topic