On portfolio page, where we have arrows for previous and next project, they do not take into account Category of current portfolio. For example I have 2 categories in portfolio and list them on separate pages, now if I click on one portfolio item from category 1, and go on Next it will take into account all categories not just category 1. Is it possible to restrict that on just current category?
Hi SreckoM!
Please add following code to Functions.php file in Appearance > Editor
add_filter( 'avia_post_nav_entries', 'enfold_customization_postnav', 10, 2);
function enfold_customization_postnav($entries, $settings) {
$entries['prev'] = get_next_post($settings['same_category']);
$entries['next'] = get_previous_post($settings['same_category']);
return $entries;
}
Cheers!
Yigit