I have created some services from the homepage as a portfolio item. I did this because I liked the listings (portfolio page and vertical list layout) so much. But now I want that the portfolio items in the category "Services" to not appear in the smooth page transition, but only the portfolio items in the category "References" are displayed there (I mean in the autoscroll to next Hero Image).
I see what you mean, however this requires a bit of a custom work, because you can apply a category filter to portfolio page templates however the portfolio navigation is for all items.
We can make the change for a small fee or we can give you guidelines on what and where to change
you need to specify via parameters that you want to navigate within the same category
the category parameter is 'portfolio_category' (the taxonomy for the custom post type antro_portfolio)
and $in_same_term is true
because of the navigation loop, there is an extra step in /include/hooks-config.php, functions antro_prev_post_link and antro_next_post_link, the query that selects first portfolio item, reversing the loop
I have created some services from the homepage as a portfolio item. I did this because I liked the listings (portfolio page and vertical list layout) so much. But now I want that the portfolio items in the category "Services" to not appear in the smooth page transition, but only the portfolio items in the category "References" are displayed there (I mean in the autoscroll to next Hero Image).
What can i do?
Hello,
You can include items belonging only to a certain (or multiple) categories by entering the portfolio category slugs in page options
https://prnt.sc/16cm25b
if you have problems with it send us wp admin access in a private comment so we can have a look
Thank you.
Clapat Support
https://www.clapat.com/
Review Envato Item Support Policy
I am sorry, i meant when scrolling down in an portfolio item i get to the next portfolio entry. I want to exclude a category here.
I have attached an image
Hi Bernd,
I see what you mean, however this requires a bit of a custom work, because you can apply a category filter to portfolio page templates however the portfolio navigation is for all items.
We can make the change for a small fee or we can give you guidelines on what and where to change
Thank you.
Clapat Support
https://www.clapat.com/
Review Envato Item Support Policy
Please give me quidelines :)
thank you :)
Hello Bernd,
Portfolio navigation is implemented in project_navigation_section.php and there you will see two functions previous_post_links and next_post_link
https://developer.wordpress.org/reference/functions/next_post_link/
you need to specify via parameters that you want to navigate within the same category
the category parameter is 'portfolio_category' (the taxonomy for the custom post type antro_portfolio)
and $in_same_term is true
because of the navigation loop, there is an extra step in /include/hooks-config.php, functions antro_prev_post_link and antro_next_post_link, the query that selects first portfolio item, reversing the loop
https://prnt.sc/17svqdn
so I think the trick there is to get the current taxonomy terms of the current post and assign it as parameters to the WP_Query:
https://developer.wordpress.org/reference/classes/wp_query/#taxonomy-parameters
Thank you.
Clapat Support
https://www.clapat.com/
Review Envato Item Support Policy