Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #381056

    Yigit had shared this code snippet for limiting post navigation within a post category, but it is not fully working. It will only navigate the first 3 posts within the category. Please advise. Thanks!

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

    #381252

    Hi xyzb!

    I think that should be working. Double check your posts to make sure they are all assigned to the same category and send us a link so we can take a look. Also be sure to deactivate all plugins while testing.

    Cheers!
    Elliott

    #381857
    This reply has been marked as private.
    #382256

    Hi!

    I tried to navigate the kids category and all posts seems to be showing fine. I’m not sure if you’re using the latest version of the theme. If not, please download 3.0.4 on your themeforest account then update the theme via FTP.

    Regards,
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.