Hi Enfold Support,
i have a website with custom post type made by CTP UI.
How can i add the back/forward arrows used on normal post type, portfolio post type and event post type? Is there a function for the child theme?
Thank´s for your help!
Hey Tobias!
Please refer to this post – https://kriesi.at/support/topic/next-previous-custom-post-type-in-same-category/#post-734606
Regards,
Yigit
Hi Yigit,
thanks for your quick anwer – but it´s not working on my site – maybe there is a failure in the code?
add_filter('avia_post_nav_settings', 'avia_post_nav_settings_mod');
function avia_post_nav_settings_mod($settings)
{
if(is_singular('hausprojekt')) {
$settings['taxonomy'] = 'hausprojekte';
$settings['is_fullwidth'] = false;
}
$settings['same_category'] = true;
return $settings;
}
Thank´s for your help!
Hey!
I changed the code to following one
add_filter('avia_post_nav_settings', 'avia_post_nav_settings_mod');
function avia_post_nav_settings_mod($settings)
{
if(is_singular('hausprojekte')) {
$settings['taxonomy'] = 'projekt_kategorien';
$settings['is_fullwidth'] = false;
}
$settings['same_category'] = true;
return $settings;
}
Can you please de-activate all active plugins, flush cache and check if that helps?
Cheers!
Yigit
Hm..
Thank´s for your help. I deactivate all plugins but it´s not working …
Tobias