Skip Navigation

[Resolved] Breadcrumbs with 2nd level category link only and category titles

This support ticket is created 6 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 5 replies, has 2 voices.

Last updated by Beda 6 years, 11 months ago.

Assisted by: Beda.

Author
Posts
#597166
wtf.png
category title.png
breadcrumbs.png

Hello, I created a breadcrumbs for my product in categories and I want to have a link to its category inside. I tried to use the this:

<ol class="breadcrumb">

  • BestOnline.cz
  • Obchod
  • [wpv-post-taxonomy type="pc" format="name"]
  • <li class="active">[wpv-post-title]
    </ol>

    But it displays all categories. I have my own taxonomy and I want to use only the 2nd level category, also only second level link.

    And second question is how to disable the category title prefix. I tried this:

    add_filter( 'get_the_archive_title', function ( $title ) {

    if( is_category() ) {

    $title = single_cat_title( '', false );

    }

    return $title;

    });

    But doesnt work.

    I am using Astra Theme. Website is under development on my IP adres. I will send you if you need it.

    #597326

    Toolset doesn't do BreadCrumbs, natively.

    I rather suggest to use the official instructions on how to create breadcrumbs:
    https://toolset.com/documentation/user-guides/views-shortcodes-for-other-plugins/

    With the ShortCode "[wpv-post-taxonomy type="pc" format="url" id="$parent"]", you address the Taxonomy of the parent of the current WordPress native Page.
    $parent is a delimiter that targets the parent of the page, as set by WordPress (not by Types parent/child relationship).
    https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-taxonomy
    https://toolset.com/documentation/user-guides/displaying-fields-of-parent-pages/

    Toolset does not offer breadcrumbs, but with the above shared DOC, it is possible to achieve.

    #597596

    Ok. I dont want to use the Yoast. I will have my SEO as custom Fields. My website is going to be completely in Toolset. So It will have no breadcrumbs. Thanks. And the category prefixes?

    #598094

    The prefix is empty by default.
    https://developer.wordpress.org/reference/functions/single_cat_title/

    Are you referring to the Title you see on the Archive created with WordPress Views Archives figuring on top of the archive page?

    This is not customizable with Toolset.
    Toolset Archive Views apply only to the loop in that archive, just as we also only replace the_content() on single Posts.

    #598826

    ok. So I need to edit the Archive.php template?... I am using the archive title shortcode.

    #598843

    The archive Title is not added by Toolset Views.

    You can remove it in the archive template of your Theme, this is correct.
    Please create a child theme if you edit a Core file of your Theme.