Home › Forums › Support › Post Nav to stay in Category This topic has 3 replies, 2 voices, and was last updated 5 years, 5 months ago by David. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts October 31, 2018 at 5:00 am #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? October 31, 2018 at 5:30 am #715405 DavidStaff 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/ October 31, 2018 at 7:25 am #715495 Andrew It’s not possible using a Hook? October 31, 2018 at 8:04 am #715608 DavidStaff 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. Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In