Archived topic
Post Nav to stay in Category
3 replies · Started by Andrew on October 31, 2018
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?
Hi there,
you will need to add the code in either of the methods provided here:
It's not possible using a Hook?
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.