Hi,
I’m using Easy Digital Downloads, I’ve two categories in there. But I want to navigate only in one category, the same as the showing download.
I’ve used this in function.php child but not working:
add_filter(‘avia_post_nav_categories’, ‘use_same_category_filter’);
function use_same_category_filter($same_category)
{
$same_category = true;
return $same_category;
}
Can you help me?
Hey keeslamper!
Thank you for using Enfold.
We modified the filter a bit. Please use this one:
add_filter('avia_post_nav_settings','avia_same_category_filter', 10, 1);
function avia_same_category_filter($settings) {
$settings['same_category'] = true;
return $settings;
}
Cheers!
Ismael