There are two links (or one link) on portfolio item page, that point to next or previous portfolio item.
How do I get this links points to only item that belong to portfolio category the current item belong to?
Hi netman2002!
Please add following code to Functions.php file in Appearance > Editor
add_filter('avia_post_nav_settings', 'avia_post_nav_settings_mod');
function avia_post_nav_settings_mod($settings)
{
if(is_singular('portfolio')) {
$settings['taxonomy'] = 'portfolio_entries';
}
$settings['same_category'] = true;
return $settings;
}
Regards,
Yigit
Thanks!
How can I remove this navigation?
Hey!
Please add following code to Quick CSS in Enfold theme options under General Styling tab
#top .avia-post-nav { display: none !important; }
Best regards,
Yigit
Can I add this filter php to child functions file
Hi,
Yes, you can add the php filter code above in your child theme’s function.php. :)
Best regards,
Nikko