• Resolved oneandonly

    (@thedunkmaster)


    Hello,

    I’ve been using Breadcrumb navxt for quite some time now and it works flawlessly. One thing that I wish I could change is to show the slug instead of the page title in the crumbs.
    This is because some of my pages have different title than the slug ( the slug is also shown in the link, in the bottom left corner of the browser when hovering over the breadcrumb and this creates a bit of confusion).
    I’m using the normal template that is found in the plugin itself, nothing custom.
    I’ve looked through the documentation and other topics, but I couldn’t find anything.
    Thank you!

    Best regards,
    Chris

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

    (@mtekk)

    Using the slugs instead of the post title for the title Breadcrumb NavXT uses isn’t something that the core plugin will do. That said, you could make it do that in a variety of ways. One way would be to add a custom template tag for %slug% and replace that with the slug using the bcn_template_tags filter (see https://mtekk.us/archives/guides/how-to-add-a-custom-breadcrumb-template-tag/ for an example on using this filter). Another option would be hooking into the bcn_breadcrumb_title filter and replacing the normal title with the slug, on-the-fly for the applicable items. Lastly, if you don’t want to write code to accomplish this, the Title Trixx extension allows you to set custom titles for posts (of any post type) and terms via a meta box in the post and term editors, and this extension has an ‘import slugs as breadcrumb titles’ feature.

Viewing 1 replies (of 1 total)
  • The topic ‘Showing the slug instead of the page title in the breadcrumb trail.’ is closed to new replies.