[Support request] Podcast-posts not showing navigation

Home Forums Support [Support request] Podcast-posts not showing navigation

Home Forums Support Podcast-posts not showing navigation

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1496514
    nudnavda

    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!

    #1496691
    David
    Staff
    Customer Support

    Hi there,

    i would assume the Simple Podcasting plugin is creating a CPT which doesn’t display Post Nav by default. However this article explains how to add them to any CPT:

    https://docs.generatepress.com/article/displaying-post-navigation-for-custom-post-types/

    #1496702
    nudnavda

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

    #1496800
    David
    Staff
    Customer Support

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

    #1502023
    nudnavda

    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!

    #1502207
    David
    Staff
    Customer Support

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

    #1502242
    nudnavda

    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 😉

    #1502585
    David
    Staff
    Customer Support

    Can you try podcast for the CPT slug instead of podcasts

    #1503028
    nudnavda

    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!

    #1503250
    David
    Staff
    Customer Support

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

    #1503560
    nudnavda

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

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.