-
AuthorPosts
-
October 24, 2016 at 11:51 am #703207
Hello,
I have made a portfolio website with several categories.
The problem is that when I’ve made a selection for a categorie, in the single item (portfolio item) mode I can go through all my portfolio items.
I just want to go to the selected categorie. Does anyone have a solution for this.Thank you for your help.
Hendrik-Jan
October 24, 2016 at 4:24 pm #703350Hey Wansink,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
Login credentials include:
- The URL to the login screen.
- A valid username (with full administration capabilities).
- As well as a password for that username.
- permission to deactivate plugins if necessary.
Best regards,
NikkoOctober 25, 2016 at 10:14 am #703697Hey Nikko,
Be my guest!
Do you want the language set on english?Hendrik-Jan
-
This reply was modified 9 years ago by
Wansink.
October 27, 2016 at 8:31 am #704711Hi,
Thanks for your patience in waiting, I have added this code in functions.php of your child theme:
add_filter('avia_post_nav_settings','avia_same_category_filter', 10, 1); function avia_same_category_filter($settings) { $settings['same_category'] = true; return $settings; }Let us know if it works on your end too:)
Best regards,
NikkoOctober 27, 2016 at 9:44 am #704757Thank you, this is the right solution!
Thank you very much!Can you help me to explain the number 10, 1 in the code.
Maybe I need this code with an other website.With regards, Hendrik-Jan
October 29, 2016 at 5:14 pm #705563Hey!
10 is the priority, in which functions run in order, the lower number gets executed first, 1 is the number of accepted arguments in the function. You can refer here for more info: https://developer.wordpress.org/reference/functions/add_filter/
Hope this helps :)
Regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.
