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.
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
Thanks for the quick respons, but the code crashed the site :-S
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
I already removed the code via FTP and the site is running again, thanks!
Hey!
I have added the code to functions.php file in your child theme. Please review your website now
Regards,
Yigit
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.
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
You can close this topic because the client is happy with the prev/next how it is now :-)
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