Portfolio Item Breadcrumbs Links To Wrong Portfolio


When clicking “Courses & Workshops” breadcrumb link on https://mbguiding.ca/browse/trip-planning-wilderness-navigation-1/ portfolio item links to https://mbguiding.ca/browse/ instead of https://mbguiding.ca/courses-workshops/

Please advise.

Thanks, MB

Hi there,

The Breadcrumbs checks the URL structure of the current page and uses that as a base to know where to link to.

On this case please check the first URL you gave:


As you can see the parent section of the URL is actually browse. That is why you will see the breadcrumbs go to https://mbguiding.ca/browse/

Actually. the breadcrumbs did the job correctly, and you need to set the proper URLs in a way that the URL be for example like this:


Thank you.

How do we set up the URL structure for a portfolio so that the breadcrumb of the portfolio parent links to the portfolio parent?

Thanks, MB

Hello There,

How do we set up the URL structure for a portfolio so that the breadcrumb of the portfolio parent links to the portfolio parent?

You can find this option in the Portfolio Item Settings. To know more about this settings, please check it out here:

Please let us know how it goes.

Yes, the portfolio parent is set to “Courses & Workshops”.

However, the “Trip Planning & Wilderness Navigation 1” portfolio item URL is not https://mbguiding.ca/courses-workshops/trip-planning-wilderness-navigation-1/ AND the “Courses & Workshops” breadcrumbs does not link to “Courses & Workshops” parent portfolio.

Please advise.

Thanks, MB

Hi there,

kindly get back to us with the URL/User/Pass of your WordPress dashboard using the Secure Note functionality of the post to follow up the case.

And also tell us what is that browse which is appearing? Is it a portfolio Category?

Hi there,

I can confirm this as a bug, I’ll add this to our issue tracker. For the meantime, please add this code to your child theme’s functions.php as a temporary solution.

add_filter('x_breadcrumbs_data', 'bc_portfolio_parent_link', 9999999, 2);

function bc_portfolio_parent_link ($crumbs, $args) {
  if ( is_singular('x-portfolio') ) {
    if ( x_is_portfolio_item() ) {
      $link = x_get_parent_portfolio_link();
    } elseif ( x_is_product() ) {
      $link = x_get_shop_link();

    $crumbs[1]['url'] = $link;
  return $crumbs;


Thanks Rad!

I can confirm this additional code works as a temporary solution.

Cheers, MB

On behalf of my colleague, you’re welcome. Cheers! :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.