I’m creating a plugin that uses a custom post type. I do not want to make a custom template for viewing the posts and discovered I can add a filter for the_content to include my custom fields, this works great. However, I don’t want visitors to navigate the custom post types with the previous next navigation. It there a way to remove these without creating a custom template?
Thank you for taking the time to look at my issue.
Try this:
It should work if the theme uses
next_post_link()
andprevious_post_link()
.Cheers