• Creator
    Topic
  • #18453

    Graham Newell
    Spectator
    Been thanked: 0 times

    Hi,

    Is it possible that when I am on a post from a certain category that I can only navigate next and previous posts in the same category only?

    I have product posts and news posts and I want to keep them seperated somewhat.

    Thanks.

    Graham

Viewing 1 replies (of 1 total)
Replies
  • Denzel Chia
    Moderator
    Post count: 3228
    Been thanked: 129 times
    #18459 |

    Hi,

    This needs custom code, which means you need to modify Evolve+ Theme file. This is beyond our support scope.

    I can only point you to the file and solution.
    The previous_post_link and next_post_link are in navigation.php at line 14 and line 15

    With reference to WordPress codex https://codex.wordpress.org/Function_Reference/previous_post_link and https://codex.wordpress.org/Function_Reference/next_post_link

    You can set the variable $in_same_term to true.

    Please hire a developer to assist you if you do not know how to set the variable.
    And you will need to do your modification after every theme update.

    Thanks!
    Denzel

Viewing 1 replies (of 1 total)
You must be logged in to reply to this topic.