- This topic has 9 replies, 3 voices, and was last updated 1 year, 7 months ago by David.
-
AuthorPosts
-
September 7, 2022 at 5:30 am #2335852Vlastimil
Hi, I have some CPT archives and want to use simple below navigation ‘previous’ and ‘next’ for all of them, including posts. I found out that in inc/structure/post-meta.php there’s a navigation for previous and next but it’s hidden in some situations (unfortunately in that situations, that I need). Additionally there’s the numbered navigation called by
if ( function_exists( 'the_posts_pagination' ) ) { the_posts_pagination(
which cannot be turned off by hook or by function overloading (because the_posts_pagination is core function).
So. Why is the simple nav hidden by default (main.css:759)? Is there a way, that I’m not able to see, to turn off (not hide by css) the numbered nav?
thank you for some kind of help
September 7, 2022 at 5:10 pm #2336429Fernando Customer SupportHi Vlastimil,
You may use a Post Navigation – Block Element: https://docs.generatepress.com/article/block-element-post-navigation/
You can also try this filter:
add_filter( 'generate_show_post_navigation', '__return_false' );
September 8, 2022 at 1:44 am #2336703VlastimilHello
Fernando,thank you very much, that’s very helpful. Actually I’ll use Archive Navigation but I didn’t find how to specify the link label for dynamic data in Headline. There’s a Title (‘Hello World’ as dummy text) and other options in Dynamic Text Type but I’d like to use ‘Previous projects’ etc.
Thanks for help
September 8, 2022 at 1:57 am #2336720Fernando Customer SupportYou’re welcome Vlastimil!
September 8, 2022 at 2:26 am #2336745VlastimilOk, so please the last thing – how to setup the label for links (please see my previous response)?
thank you
September 8, 2022 at 3:59 am #2336837DavidStaffCustomer SupportHi there,
for now you will need to use a GB Button, with those you can add a static label and set a dynamic link.
Whereas Headlines, the GP Dynamic Data options you have to have a dynamic label to have a dynamic link.In the future the GenerateBlocks Dynamic Data options will have Next / Previous posts as its Content sourec.
September 8, 2022 at 4:13 am #2336848VlastimilHi David, thanks for your answer, I understand. Even if I use GB button and set up a static label, the result is dynamically modified. So I use ‘Previous projects’ with button, but the result is ‘projects’ because that’s the CPT name. With other words – it’s the same with GB button as with Headline.
The Dynamic text type combo does not have a ‘custom text’ option in both situations and the button label is being overwritten.
Any other chance or am I doing something wrong..?
thank you
September 8, 2022 at 6:46 am #2336989DavidStaffCustomer SupportSeptember 9, 2022 at 12:43 am #2337689VlastimilWell, that works. So I must not to choose text type, ok.
David, thanks for your help!
September 9, 2022 at 3:17 am #2337815DavidStaffCustomer SupportGlad to be of help!
-
AuthorPosts
- You must be logged in to reply to this topic.