Hi. I would like to use several portfolios on my site and show entries from certain categories in each one. However, when navigating thru entries using the right/left arrows, this causes all entries to be displayed (in chronological sequence) not only the ones in that category. Is there a way to only show desired entries from a particular category when scrolling thru the arrows? thanks. I found a previous thread on this issue, tried the functions.php that was suggested, but it did not work. Please advise, thanks!
Hey AirstreamCoach,
Have you tried adding following code to Functions.php file in Appearance > Editor?
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,
Yigit
Yigit, I just ran a test with this code – it works perfectly! Thank you so much!