Archived topic
Post navigation previous/next is showing twice on posts and custom post types
5 replies · Started by Patrick on March 31, 2021
After updating to the latest WP and updating GP plugin to the latest version, post navigation is displaying twice above all post and custom post types. I tried deactivating plugins looking for conflicts, but this did not resolve the issue.
Please advise. Thanks!
Hi there,
Any chance you can link us to the site in question?
You can use the private information field.
Let me know :)
Here is the site URL https://www.uscybersecurity.net/botnet/
also, custom post Type: https://www.uscybersecurity.net/cyberNews/clop-group-leaks-university-data/
Thanks!
Are you using any custom function to add the post navigation?
In the child theme function, there is this snippet:
add_action( 'generate_after_entry_content', 'tu_custom_post_type_post_nav');
function tu_custom_post_type_post_nav() {
if ( 'csmag' == get_post_type() ) : ?>
<footer class="entry-meta">
<?php generate_entry_meta(); ?>
<?php if ( is_single() ) generate_content_nav( 'nav-below' ); ?>
</footer><!-- .entry-meta -->
<?php endif;
}
I did not build this site, so I have been trying to learn how to navigate where everything is. I am not totally sure where else to look and what to look for.
Hi there,
Have you tried commenting that code by wrapping it within /* ... */ to check if it's actually the issue?
I've checked the link and it doesn't look like it matches the duplicate post navigation.
The post you've linked has cybernews post type but this looks like it applies for csmag post type.