Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #685897

    The previous/next links that comes with enfold are nice but it’s nog working as i want to, they slide from post to post by postdate. So i want to put the next/previous links on the post itself an slide within a category. But the posts have multiple categories how can i add these links? I tried several options as explained in the reference guide of wordpress but some how i cannot find the right place in the single.php or in the loop-index.php.

    #685912

    Hi TanjaV!

    Please add following code to Functions.php file in Appearance > Editor

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

    Cheers!
    Yigit

    #686296

    Thanks for the quick respons, but the code crashed the site :-S

    #686392

    Hi,

    Hmm. That should not have happened. Please go to wp-content/themes/enfold/functions.php file and remove the code via FTP and post post WP admin logins and FTP logins here privately so we can look into it.

    Best regards,
    Yigit

    #686414

    I already removed the code via FTP and the site is running again, thanks!

    #686432

    Hey!

    I have added the code to functions.php file in your child theme. Please review your website now

    Regards,
    Yigit

    #686442

    Hi,

    I did that before with the code from above but i don’t see any changes in de previous/next arrows on the site. I’m not sure if the function.php in the child is working because the same code in the function.php of enfold crasht the site. It is still browsing by postdate and i want it to go previous/next by categorie.

    #688640

    Hey!

    The access you posted is not working, please check.

    Regards,
    Josue

    #689678

    Hey,

    I know, i changed it because the website is live now. I will make an guest account so you can login again.

    Regards,
    Tanja

    #694488

    You can close this topic because the client is happy with the prev/next how it is now :-)

    #694492

    Hi,

    Glad you found a workaround. The site looks nice!

    Let us know if you have more questions via a new ticket.

    Thank you for using Enfold :)

    Best regards,
    Vinay

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘How to add previous/next links in a posts with multiple categories?’ is closed to new replies.