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

    When turning on blog navigation for Portfolio Entries (blog navigation), the left and right arrows that appear aren’t not cycling through only the entries of a particular category. Rather, they are cycling through ALL the Portfolio Entries. When navigating to a single entry from a category page, or a portfolio grid (set to only show entries of a specific category) how do I limit the navigation to only posts of that category.

    Is this a setting that can be achieve in a ALB custom layout?

    Thank you in advance for any guidance.

    #1490791

    Hey milkrow,

    Thank you for the inquiry.

    You can add this filter to the functions.php file to limit post navigation to items within the same category. However, please note that this will also disable looping and will only work if each portfolio item belongs to a single category.

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

    Best regards,
    Ismael

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