• Resolved rcorr

    (@rcorr)


    Hello,

    I am currently redesigning a website where I have been asked to split the blog posts into two groups:

    1. posts that belong to the apiary category
    2. posts that not belong to the apiary category (e.g. all other posts)

    I have managed to separate the blog posts into these to groups.

    My question relates to when one is viewing a single post and clicks the next or previous buttons through the other posts.

    For example, when visiting this page<, and you click “< Previous”, you’ll notice the sidebar changes as the post is not an apiary post.

    Is there a way to omit posts while browsing through the blog reel?

    Cheers,

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Joy

    (@joyously)

    Yes, in the theme (or child theme), you can output the links using

    the_post_navigation( array(
    	'in_same_term' => true,
    	'taxonomy' => 'category',
    ));
    Thread Starter rcorr

    (@rcorr)

    Thanks Joy. Works like a charm.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove certain posts while pagination through posts one by one’ is closed to new replies.