Tagged: ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #529245

    Hi,

    I copied this code to enfold child functions.php, but not working… I know it’s impossible :)
    https://kriesi.at/support/topic/avia-post-nav-with-the-same-category/

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

    Thank you

    Regards,
    Peter

    • This topic was modified 9 years, 1 month ago by jambrikp.
    #529758

    Hey Peter!

    Thank you for using Enfold.

    We actually 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;
    }

    Best regards,
    Ismael

    #529847

    Thank you :) It’s work!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Avia Post NAV with the same category, not work?’ is closed to new replies.