[Support request] Post Nav to stay in Category

Home Forums Support [Support request] Post Nav to stay in Category

Home Forums Support Post Nav to stay in Category

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #715379
    Andrew

    Hi, so I’m trying to get the post navgation to stay within the current category.

    I added the code from https://generatepress.com/forums/topic/post-nav-stay-in-current-category-loop/ , t the wp-head set to All Posts.

    It doesn’t seem to work, have I made an error?

    #715405
    David
    Staff
    Customer Support

    Hi there,

    you will need to add the code in either of the methods provided here:

    https://docs.generatepress.com/article/adding-php/

    #715495
    Andrew

    It’s not possible using a Hook?

    #715608
    David
    Staff
    Customer Support

    Nope, the code has to be executed in the functions.php or code snippets plugin as it filters the content being output to the template, whereas a hook is adding an action to the template.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.