Tagged: ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #554421

    Hi,

    I’m using Easy Digital Downloads, I’ve two categories in there. But I want to navigate only in one category, the same as the showing download.

    I’ve used this in function.php child but not working:

    add_filter(‘avia_post_nav_categories’, ‘use_same_category_filter’);
    function use_same_category_filter($same_category)
    {
    $same_category = true;
    return $same_category;
    }

    Can you help me?

    #555340

    Hey keeslamper!

    Thank you for using Enfold.

    We modified the filter a bit. Please use this one:

    add_filter('avia_post_nav_settings','avia_same_category_filter', 10, 1);
    function avia_same_category_filter($settings) {
         $settings['same_category'] = true;
         return $settings;
    }

    Cheers!
    Ismael

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