Hi,
I am trying to limit the next/previous post arrows which appear on all posts to only move to the next post within the relevant category. I have followed the instructions here: https://kriesi.at/support/topic/can-i-use-the-navigation-arrows-for-each-category-not-all/ using this code:
add_filter('avia_post_nav_categories', 'use_same_category_filter');
function use_same_category_filter($same_category)
{
$same_category = true;
return $same_category;
}
Unfortunately its having no effect. Is this code still good?
Hey!
Please try changing your code to following one
add_filter('avia_post_nav_settings', 'avia_post_nav_settings_mod');
function avia_post_nav_settings_mod($settings)
{
$settings['same_category'] = true;
return $settings;
}
Best regards,
Yigit
Hey Yigit – I’ve tried this new code and it’s still showing me posts from unrelated post categories.
Shouldn’t this be a checkbox by now in Enfold? Seems like it! Anyway, any help you can provide would be welcome.
Link showing issue in private content, along with login.
Hi,
@charger70 Editor is missing under Appearance tab. Could you please start a new thread and attach FTP and WP admin logins in there privately? If you post them here, they will be visible to the creator of this thread as well
Best regards,
Yigit
Yigit – will do, thank you.