Site logo

Archived topic

Podcast-posts not showing navigation

10 replies · Started by nudnavda on October 20, 2020

Viewing posts 1–11 of 11

Hello,
I'm using the Seriously Simple Podcasting Plugin.
The podcast posts don't show the navigation that regular WP-posts show (previous, next - at the bottom).
It would be great if the podcast-posts could show this too.
I contacted the plugin maker; got advice to contact theme maker ;-(

Would this be possible in GP without too much delving in code?
I'm not familiar with php.
Thanks for any help!

Thanks David, for the fast reply.
I will look into this article for further guidance.

Glad to be of help - the plugin author should be able to provide the CPT slug for that filter.

Hi David,
I have to return to you alas, since the recommended actions yielded no succes.

1. installed Code Snippets plugin
2. added Post Nav code found in GP-link you provided
3. replaced 'your-post-type' by slug 'podcasts' (provided by plugin author)

Is there anything else I have to do or forgot?
Or is this more of an item for the plugin author?

I'm using Chrome, and Wordpress is up to date.
Thanks again!

Can you share the final code you have used and provide us a link to where i can see the issue?

A link which shows the absence of navigation:
https://stiltij.nl/podcast/bevrijdingswerk-19-07-14/

The code of the snippet:

add_action( 'generate_after_entry_content', 'tu_cpt_footer_meta' );
function tu_cpt_footer_meta() {
if ( is_singular( 'podcasts' ) ) : ?>
<footer class="entry-meta">
<?php generate_entry_meta(); ?>
<?php generate_content_nav( 'nav-below' ); ?>
</footer><!-- .entry-meta -->
<?php endif;
}

Hope this helps ;-)

Can you try podcast for the CPT slug instead of podcasts

I could have been more pro-active on this one :-)
Did not notice the discrepancy between the actual url and the snug that was provided.
It works now, but... this solution creates a double navigation, that is, the code below is produced twice:

<nav id="nav-below" class="post-navigation">
<span class="screen-reader-text">Berichtnavigatie</span>

</nav>

I'll leave it activated for now, so you can check the page with the browser inspector.
Maybe an issue for the plugin author?
Greetings!

Can you remove the <?php generate_content_nav( ‘nav-below’ ); ?> from your snippet.

Yes, David: did the trick.
Thank you for the commitment!

This archived topic is closed to new replies.