-
AuthorPosts
-
September 13, 2016 at 4:18 pm #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.
September 13, 2016 at 4:44 pm #685912Hi 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!
YigitSeptember 14, 2016 at 12:03 pm #686296Thanks for the quick respons, but the code crashed the site :-S
September 14, 2016 at 3:00 pm #686392Hi,
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,
YigitSeptember 14, 2016 at 3:28 pm #686414I already removed the code via FTP and the site is running again, thanks!
September 14, 2016 at 3:49 pm #686432Hey!
I have added the code to functions.php file in your child theme. Please review your website now
Regards,
YigitSeptember 14, 2016 at 3:58 pm #686442Hi,
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.
September 19, 2016 at 6:03 pm #688640September 21, 2016 at 9:21 am #689678Hey,
I know, i changed it because the website is live now. I will make an guest account so you can login again.
Regards,
TanjaOctober 3, 2016 at 10:41 am #694488You can close this topic because the client is happy with the prev/next how it is now :-)
October 3, 2016 at 10:48 am #694492Hi,
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 -
AuthorPosts
- The topic ‘How to add previous/next links in a posts with multiple categories?’ is closed to new replies.
