-
AuthorPosts
-
April 30, 2024 at 3:58 pm #1441462
Hi,
I created 2 portfolio categories and associated portfolio entries to each category, in the front-end all portfolio entries (in breadcrumbs) display the same category, can you help me?
The site is under developmentMay 1, 2024 at 6:25 am #1441542Hey auxonet,
Thank you for the inquiry.
Would you mind providing links to the portfolio items associated with a specific category? Or share the login details in the private field so that we can access the dashboard.
Best regards,
IsmaelMay 9, 2024 at 4:09 pm #1442817Hi Ismael, news?
May 11, 2024 at 8:04 pm #1443001Hi,
When I check your site I see four portfolio categories:
and the breadcrumbs seem correct for each category:
please explain the error that you see further, perhaps a screenshot would help.Best regards,
MikeMay 13, 2024 at 7:23 am #1443181Hi Mike,
When you select: ‘Heron 80 or Tucano or Colibrì or Falcone Rei +’ the correct path should be:
You are in:Home/Products/HERON 80
and not
You are in:Home/Components/HERON 80May 13, 2024 at 11:00 am #1443223Hi,
The category of the portfolio will not be included in the URL by default, only the Portfolio Items Base and the Portfolio Categories Base. Did you set “Components” as the value of either the Portfolio Items Base or the Portfolio Categories Base field in the Settings > Permalinks panel?
Please provide the login details in the private field. We may need to access the dashboard in order to properly understand the issue.
Best regards,
IsmaelMay 13, 2024 at 11:08 am #1443227The category ‘components’ is not set as the basic category
May 14, 2024 at 5:53 am #1443350Hi,
Thank you for the info.
We added this filter in the functions.php file to fix the breadcrumb trail:
add_filter('avia_breadcrumbs_trail', 'avia_breadcrumbs_trail_mod', 20, 2); function avia_breadcrumbs_trail_mod($trail, $args) { if (is_singular('portfolio')) { $home = $trail[0]; $last = array_pop($trail); // Get the first term from the taxonomy 'portfolio_entries' $terms = get_the_terms(get_the_ID(), 'portfolio_entries'); if (!empty($terms) && !is_wp_error($terms)) { $term = array_shift($terms); $link = '<a href="' . get_term_link($term) . '">' . $term->name . '</a>'; $link = preg_replace('!rel=".+?"|rel=\'.+?\'|!', "", $link); $link = str_replace('<a ', '<a rel="v:url" property="v:title" ', $link); $link = '<span typeof="v:Breadcrumb">' . $link . '</span>'; $trail[1] = $link; array_push($trail, $last); } } return $trail; }
Best regards,
IsmaelMay 14, 2024 at 7:27 am #1443362Hi Ismael,
perfect now it works, thank youMay 14, 2024 at 9:22 am #1443382 -
AuthorPosts
- You must be logged in to reply to this topic.