• Hi, I have a custom taxonomy that is shared between two custom post types.

    In the breadcrumb trail for taxonomy term archives, most of them show the CPT that I want to display. However, one of the taxonomy term archives shows the other CPT in the trail (the one I don’t want to display). I’m not sure what exactly is determining which one displays. It seems random.

    Is there a way to specify which CPT to display in the trail when a taxonomy is shared between multiple CPTs? Or perhaps a way to make one of the CPTs the primary one when used in breadcrumbs?

    Thanks

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

    (@mtekk)

    Breadcrumb NavXT tries to associate a post type to a taxonomy, normally it will attempt to use the first post type the taxonomy is registered to. You can control the post type a taxonomy archive uses via the bcn_type_archive_post_type filter.

    Thanks for providing this great plugin. I have the same issue – a custom taxonomy shared between 2 custom post types. Ideally I would like to replace the “parent” CPT link in the breadcrumb trail with a specific page. Any chance of a code sample to show us the way?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Taxonomy shared between two CPTs’ is closed to new replies.