• Hi there,
    i got a custom post type created via CPT UI (“custompost”).
    Additionally i have a primary category (“primarycategory”).
    My permalinks are setup as /%category%/%postname%/

    But:
    The permalink “base”, the “cutompost” part can’t be edited.
    So my permalinks look like:
    https://domain.de/custompost/primarycategory/postname-xyz

    This leads to a breadcrumb:
    home | custompost |?primarycategory |?postname-xyz

    I want the custom post name and the primary category to be changed, so that my trail loks like:#

    home |?primarycategory | custompost |?postname-xyz

    How can i achieve this?

    P.S: i already installed the “Custom Post Type Permalinks” plugin, but this doesn’t help me out here.

    Best regards

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

    (@mtekk)

    Breadcrumb NavXT assumes that since taxonomies describe post types, they live between the post type archive/post type root and the post instance in the breadcrumb trail. That said, you do bring up an interesting way to handle when a taxonomy belongs to several post types.

    In the immediate term, you can change the order of the breadcrumbs by writing a hook into the bcn_after_fill action. you will have access to all of the members of the breadcrumb trail and can re-arrange them as needed. See the Breadcrumb NavXT documentation for more information on this action: https://mtekk.us/code/breadcrumb-navxt/breadcrumb-navxt-doc/2/#bcn_after_fill

    Thread Starter throotsdev

    (@throotsdev)

    @mtekk awesome! thanks for the quick answer and the outstanding plugin.

    best regards

    Thread Starter throotsdev

    (@throotsdev)

    @mtekk it’s really an interesting way for the breadcrumb order. it makes more sense when you do know the “domain” of the application:
    it’s a magazine.
    and i want the breadcrumb ordered so that the issue comes first:
    home | issue 2017/03 (primary category) | interview (cpt) | my-interview
    home | issue 2016/08 | books | my-book

    best regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Breadcrumb Trail order’ is closed to new replies.