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
- The topic ‘Post navigation conflict’ is closed to new replies.