Hi
I’d created a CPT and I would like to use session data to build the breadcrumb. This option is abailable on portfolio items.
This is the situation:
There are to CPT, BOOKS and AUTHORS
Each Book links to its Author. So you can access to a Author post from different Book post.
Now the breadcrumb shows like this: Home/Author or Home/Book
The idea is to show the breadcrumb following the navigation history.
Example: Home/Book1/Auhor1 or Home/Book2/Author1 depending how you access to Author1.
This behavior can be used on portfolio items, is possible to aply to a CPT?
Hey alnalu,
Thanks for contacting us. :) When you mentioned it’s a behavior on portfolio items (breadcrumb), are you referring to the breadcrumbs (below the menu) of the portfolio item you can find here: http://kriesi.at/themes/enfold/portfolio-item/single-portfolio-23-gallery-3/ ?
Best regards,
Nikko
Yes, exactly
Hey!
This is possible but it will require modifications that are outside the scope of support because you have to start a session in the cpt template using the session_start function and access it using the $_SESSION variable when filtering the breadcrumb trail. You can find the portfolio breadcrumb modification in the includes > helper-template-logic.php file > avia_modify_breadcrumb function.
Cheers!
Ismael