• Resolved phobos76

    (@phobos76)


    Hello everyone.
    I have around 500 articles on my site. Each article is listed in 2 categories (country and year). However, in the breadcrumbs of my site, only the main category appears. I would like both categories to appear.

    Currently it looks like this:
    Home > category X > article

    I would like it to look like this:
    Home > category X > category Y > article
    or
    Home > category Y > category X > article
    (Never mind)

    Do you know if it is possible to achieve this?

    Best regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • You are also able to edit the breadcrumbs pathway from within your theme’s functions.php file by using the wpseo_breadcrumb_links developer filter. You can find some example code on how to use this filter available here. In addition, wpseo_breadcrumb_single_link is another developer filter that is available, which allows you to edit indiviudal items in the breadcrumbs pathway. Example code usage for it can found here.

    When using developer filters to customize the breadcrumbs in functions.php, we recommend using a child theme so as to preserve your changes. If you aren’t sure of how to implement customizations using a developer filter in functions.php we would recommend reaching out to your theme provider, 3rd party WordPress developer, or Yoast Partner for additional assistance.

    This thread was marked resolved due to a lack of activity, but you’re always welcome to re-open the topic. Please read this post before opening a new request.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Two categories in breadcrumb’ is closed to new replies.