- This topic has 10 replies, 2 voices, and was last updated 3 years, 5 months ago by nudnavda.
-
AuthorPosts
-
October 20, 2020 at 12:13 am #1496514nudnavda
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!October 20, 2020 at 3:12 am #1496691DavidStaffCustomer SupportHi 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/
October 20, 2020 at 3:19 am #1496702nudnavdaThanks David, for the fast reply.
I will look into this article for further guidance.October 20, 2020 at 4:51 am #1496800DavidStaffCustomer SupportGlad to be of help – the plugin author should be able to provide the CPT slug for that filter.
October 24, 2020 at 12:28 am #1502023nudnavdaHi 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!October 24, 2020 at 5:16 am #1502207DavidStaffCustomer SupportCan you share the final code you have used and provide us a link to where i can see the issue?
October 24, 2020 at 5:53 am #1502242nudnavdaA 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 😉
October 24, 2020 at 9:35 am #1502585DavidStaffCustomer SupportCan you try
podcast
for the CPT slug instead ofpodcasts
October 25, 2020 at 12:24 am #1503028nudnavdaI 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><span class=”prev” title=”Vorige”>Norman Fischer: onderricht 7 aug. 2019 (audio)</span><span class=”next” title=”Volgende”>Lichtland</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!October 25, 2020 at 6:11 am #1503250DavidStaffCustomer SupportCan you remove the
<?php generate_content_nav( ‘nav-below’ ); ?>
from your snippet.October 25, 2020 at 7:53 am #1503560nudnavdaYes, David: did the trick.
Thank you for the commitment! -
AuthorPosts
- You must be logged in to reply to this topic.