Tagged: Portfolio
Hi, I have a problem about portfolio item in Enfold theme. When I’m in specific portfolio item, the left and right side will have a button for navigating to previous or next items but it also can navigate to the items in other category that I don’t want it happen, I want it can navigate to other item in only the same category.
How can I do or if it cannot, can you suggest some of the solutions?
First image shows, it can navigate to next item in same category

Second image shows, it can navigate to previous item in other category ( I don’t want this )

Thank you,
JT
Hi Jaturong!
Please see here, https://kriesi.at/support/topic/avia-post-nav-with-the-same-category/#post-185420.
Best regards,
Elliott
I try to follow that solution by put 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;
}
to functions.php but it doesn’t work :(
My page link : http://www.letscook.com.mm/recipes/
Hey!
Please use a child theme and insert the code to functions.php file of your child theme – http://kriesi.at/documentation/enfold/using-a-child-theme/
Regards,
Yigit
