Support » Developing with WordPress » get_the_post_navigation() only post from primary category

  • I am trying to get a post navigation, where the next/previous post should not only be in the same term, but also only in the primary category of the displayed post.

    This is the Code I have:

    get_the_post_navigation(
    array(
    'in_same_term' => 'true',
    )
    );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘get_the_post_navigation() only post from primary category’ is closed to new replies.