I’ve created several portfolio categories.
On top of a portfolio page you can click on the right and left side to watch another portfolio title, which are showed automatically.
But by default if shows items of all several portfolio categories, and I want to show only the related items of that category.
For example, when a visitor is on the portfolio page of title of portfolio category A, I only want visitors be able to see items 2, 3, 4 etc. of category A.
But right now also items of portfolio category B, C etc. are shows in the right and left side. It automatically select the order of the titles in CMS, but I want them to be ordered based on category.
How can this be changed?
Hey michielschoonhoven,
Please try to check the following threads:
– https://kriesi.at/support/topic/show-portfolio-category-on-portfolio-pages/#post-540059
– https://kriesi.at/support/topic/show-categories-and-tags-in-portfolio/
Best regards,
Nikko
Hi Nikko,
Thanks for your reply, but unfortunately I don’t see the solution in those threads.
If you look for example at the website on the top content block visitors can click on an arrow on the right side. It shows another portfolio item, but from another portfolio category. I only want a click through to the same portfolio category.
Do you know how to solve that?
Thank you
Best
Michiel
Hi Michiel,
We apologize for the delayed response.
Can you try adding this code in functions.php (most preferrably in a child theme so it’s permanent):
function my_avf_post_nav_settings( array $settings ) {
$settings['same_category'] = true;
return $settings;
}
add_filter( 'avf_post_nav_settings', 'my_avf_post_nav_settings', 10, 1 );
Best regards,
Nikko