This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Single Custom Post Type >> https://generatepress.com/forums/topic/nextprevious-post-links-on-cpt/#post-326390 | |
add_action( 'generate_after_entry_content', 'tu_custom_post_type_post_nav' ); | |
function tu_custom_post_type_post_nav() { | |
if ( 'my-post-type' == get_post_type() ) : ?> | |
<footer class="entry-meta"> | |
<?php generate_entry_meta(); ?> | |
<?php if ( is_single() ) generate_content_nav( 'nav-below' ); ?> |
OlderNewer