Limiting Prev/Next to the same category
-
I’ve tried all kind of code snippets from older themes/functions to limit the prev+next buttons to work within the same category.
/* prev next button same category */
function zakra_child_post_navigation() {
the_post_navigation( array( ‘in_same_term’ => true, ) );
}
add_action( ‘zakra_after_single_post_content’, ‘zakra_child_post_navigation’, 100 );*just an example
Has anybody a working solution to use prev/next in the same category + 2023(theme) or an idea why I’m screwing it up…?
TyThe page I need help with: [log in to see the link]
Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
- The topic ‘Limiting Prev/Next to the same category’ is closed to new replies.