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

    Hi Team, i found in this support blog, that to make a next/previous button with the same category is necessary put this code inside the Child Theme (functions.php):

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

    But when i refresh the page this doesn´t work fine.
    Could you help me please?

    Thanks a lot.

    #853112

    Hey manelroig,
    I tested the function on my localhost (clean install) and it worked correctly. Try disabling your plugins. If that resolves the issue, reactivate each one individually until you find the cause. I would think “Simple Custom Post Order” may cause a conflict.

    Best regards,
    Mike

    #853458

    Thanks a lot,
    you’re right because a plugin causes the problem. Now it’s working ok,

    #853467

    Hey!

    Glad Mike could help! :)

    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Best regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Next-Previous Custom Post type in same Category’ is closed to new replies.