• Hi,

    I have a custom post type “office”.

    I want to keep the plural name in the breadcrumbs but don’t want it to link to that post type archive page (I don’t even want to have one).

    Want it like this: Home > Offices > UK

    The “Offices” bit only shows up if I activate the “has archive” option for the custom post type. But with that option, it will be linked in the breadcrumbs.

    How can I disable the link, but keep the text?

    Thanks!

    https://wordpress.org/plugins/breadcrumb-navxt/

Viewing 1 replies (of 1 total)
  • Plugin Author John Havlik

    (@mtekk)

    Typically, it is considered bad form to have an unlinked breadcrumb in the middle of the breadcrumb trail. It in effect, is noise, to the rest of the content of the breadcrumb trail. That said, you can write a hook for the bcn_breadcrumb_url filter and have it return '' or NULL rather than the URL when the Offices post type archive URL is passed into it.

Viewing 1 replies (of 1 total)
  • The topic ‘Disable archive link’ is closed to new replies.