Hi,
I copied this code to enfold child functions.php, but not working… I know it’s impossible :)
https://kriesi.at/support/topic/avia-post-nav-with-the-same-category/
add_filter('avia_post_nav_categories', 'use_same_category_filter');
function use_same_category_filter($same_category)
{
$same_category = true;
return $same_category;
}
Thank you
Regards,
Peter
Hey Peter!
Thank you for using Enfold.
We actually 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;
}
Best regards,
Ismael
Thank you :) It’s work!