Closed lkraav closed 9 years ago
A filter perhaps?
is_singular( apply_filters( "loop_nav_post_types", array( "post" ) ) )
It's impossible to know whether a CPT should display navigation without knowledge of the CPT itself. So, the default is going to handle post types that it's aware of, which are the ones built into core WP. Based on my experience, the vast majority of CPTs do not need this sort of navigation, so the best default is to do nothing.
Since Hybrid Base is nothing more than a theme intended to be forked, the best option is to handle this however you see fit in your themes.
OK. Sticking the filter in my fork.
https://github.com/justintadlock/hybrid-base/blob/master/misc/loop-nav.php#L1
You're using this elsewhere
Why not here for loop-nav?
BTW what's the difference between the above and just