Title: Post navigation conflict
Last modified: January 14, 2018

---

# Post navigation conflict

 *  Resolved [marbaque](https://wordpress.org/support/users/marbaque/)
 * (@marbaque)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/post-navigation-conflict/)
 * I have a custom navigation function I created for a custom post type, which has
   its own template. When I activate the badgeOS plugin it shows the default wordpress
   navigation instead of my theme navigation.
 * My function:
    function flexieduca_post_navigation() { the_post_navigation(array(‘
   next_text’ => ‘<span class=”meta-nav” aria-hidden=”true”>’ . __(‘Next’, ‘flexieduca’).‘
   </span> ‘ . ‘<span class=”screen-reader-text”>’ . __(‘Next post:’, ‘flexieduca’).‘
   </span> ‘ . ‘<span class=”post-title”>%title</span>’, ‘prev_text’ => ‘<span class
   =”meta-nav” aria-hidden=”true”>’ . __(‘Previous’, ‘flexieduca’) . ‘</span> ‘ .‘
   <span class=”screen-reader-text”>’ . __(‘Previous post:’, ‘flexieduca’) . ‘</
   span> ‘ . ‘<span class=”post-title”>%title</span>’, )); }
 * I expect having this custom navigation but what I get is the default navigation.
   If I deactivate BadgeOS, my custom navigation function is correctly loaded.
 * Any ideas of what part of BadgeOS can be causing this conflict?
 * BadgeOS: 1.4.9
    WordPress: 4.9.1 Template: Custom theme created with underscores
    -  This topic was modified 8 years, 4 months ago by [marbaque](https://wordpress.org/support/users/marbaque/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [Wooninjas](https://wordpress.org/support/users/wooninjas/)
 * (@wooninjas)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/post-navigation-conflict/#post-10421412)
 * Hey [@marbaque](https://wordpress.org/support/users/marbaque/)
 * Please update the plugin to the latest version (1.4.11), See changelog [here](https://wordpress.org/plugins/badgeos/#developers)
 * Add below snippet to your active theme functions.php and replace **wn_android**
   with your custom post type slug.
 *     ```
       add_action( 'wp_head', function() {
           if( is_singular( 'wn_android' ) ) {
               remove_filter('previous_post_link', 'badgeos_hide_previous_hidden_achievement_link');
               remove_filter('next_post_link', 'badgeos_hide_next_hidden_achievement_link');
           }
       });
       ```
   
 * We will surely make the plugin more flexible in future updates.
 * Thanks
 *  Thread Starter [marbaque](https://wordpress.org/support/users/marbaque/)
 * (@marbaque)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/post-navigation-conflict/#post-10619312)
 * Awesome, thank you. That should do! it works!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Post navigation conflict’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/badgeos_85d3bc.svg)
 * [BadgeOS](https://wordpress.org/plugins/badgeos/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/badgeos/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/badgeos/)
 * [Active Topics](https://wordpress.org/support/plugin/badgeos/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/badgeos/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/badgeos/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [marbaque](https://wordpress.org/support/users/marbaque/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/post-navigation-conflict/#post-10619312)
 * Status: resolved