Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #589605

    There are two links (or one link) on portfolio item page, that point to next or previous portfolio item.
    Portfolio links
    How do I get this links points to only item that belong to portfolio category the current item belong to?

    • This topic was modified 8 years, 9 months ago by netman2002.
    #589816

    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

    #589841

    Thanks!
    How can I remove this navigation?

    #589846

    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

    #902436

    Can I add this filter php to child functions file

    #902449

    Hi,

    Yes, you can add the php filter code above in your child theme’s function.php. :)

    Best regards,
    Nikko

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.