Next/Previous links within same category?

Loving this theme, so simple and effective.

On my old site I changed the next/previous links that appear at the bottom of each post to point to the next/previous posts within the same category, I believe by using the $in_same_term parameter on the function that generated the links.

I’d like to do the same on the GreatMag themed site, but am having a bit of trouble finding the code that generates the links. Can anyone help me out?

Best
Adam

Hello Adam,

Edit the single.php file and replace the_post_navigation() template tag with your custom code. Ensure you do it with a child theme as the changes will be overwritten upon theme update.

Regards,
Kharis

1 Like