Barnsbury – how to link to prev/next post in same category
-
I use Barnsbury as the Theme for my website.
My Posts are in different languages and each language has its own Category. Next to each Post in WordPress, in the column on the right, I indicate in the Post Settings the Category (language) of the Post.
In Barnsbury, below each Post, automatically it links to the Previous and Next Post ??
However, this link does not take the category into account so the Previous or Next Post Is usually in another language ??
Based on information I found on the internet, I eventually tried to add this code to the functions.php file (similar code seems to work with another Theme)
– – – – –function barnsbury_post_navigation() { the_post_navigation( array( 'in_same_term' => true, ) ); }
– – – – –
But that didn’t change anything. Does anybody know where/how to make Previous / Next Page stay within the same Category in the Barnsbury Theme?
Thanks a million,
Paul
- This topic was modified 3 years, 1 month ago by . Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
The page I need help with: [log in to see the link]
- The topic ‘Barnsbury – how to link to prev/next post in same category’ is closed to new replies.