Tagged: ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #776165

    Hi,

    I am trying to limit the next/previous post arrows which appear on all posts to only move to the next post within the relevant category. I have followed the instructions here: https://kriesi.at/support/topic/can-i-use-the-navigation-arrows-for-each-category-not-all/ using this code:

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

    Unfortunately its having no effect. Is this code still good?

    #776686

    Hey!

    Please try changing your code to following one

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

    Best regards,
    Yigit

    #817957

    Hey Yigit – I’ve tried this new code and it’s still showing me posts from unrelated post categories.

    Shouldn’t this be a checkbox by now in Enfold? Seems like it! Anyway, any help you can provide would be welcome.

    Link showing issue in private content, along with login.

    #818463

    Hi,


    @charger70
    Editor is missing under Appearance tab. Could you please start a new thread and attach FTP and WP admin logins in there privately? If you post them here, they will be visible to the creator of this thread as well

    Best regards,
    Yigit

    #818477

    Yigit – will do, thank you.

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