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

    Hi there,

    I have added the functions below in my child theme functions.php but it doesn’t seem to work. Any idea why?

    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

    #574339

    Hi janicenisha!

    Thank you for using Enfold.

    Please replace the code with this:

    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

    #574491

    Hi Ismael,

    Thank you very much, worked great!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Next/Previous Post within same Category not working’ is closed to new replies.