Title: Custom Post Types and rewrite slug in breadcrumbs
Last modified: August 30, 2016

---

# Custom Post Types and rewrite slug in breadcrumbs

 *  Resolved [igloobob](https://wordpress.org/support/users/igloobob/)
 * (@igloobob)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/custom-post-types-in-breadcrumbs/)
 * Hello,
 * thanks for a ridiculously good plugin!
 * I’m trying to set up breadcrumbs on a site where I have a few custom post types
   and I have those set to use a custom rewrite slug to include a parent static 
   page called ‘news’.
 * So urls would look like this ..
 * site.com/news/awards/post-name
    site.com/news/events/post-name
 * etc..
 * I want this set up as custom post types rather than regular categories as it 
   makes them clear separate sections for the client in admin.
 * I can see how to set the breadcrumbs to show category.
 * Is there a way to customise this to reflect the structure of my CPT and the custom
   slug?
 * So like this:
 * home/news/events/post-name
 * Rather than
 * home/post-name
 * Is this possible and if so can you please advise or point me in the direction?
 * Thanks!
 * [https://wordpress.org/plugins/wordpress-seo/](https://wordpress.org/plugins/wordpress-seo/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [igloobob](https://wordpress.org/support/users/igloobob/)
 * (@igloobob)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/custom-post-types-in-breadcrumbs/#post-6526989)
 * Can anyone please offer any advice on this?
 *  [jryanp](https://wordpress.org/support/users/jryanp/)
 * (@jryanp)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/custom-post-types-in-breadcrumbs/#post-6527075)
 * I too am looking for the same answer.
 * I created 3 custom post types (CPT)
 * When registering the CPTs I set has_archive to true and set the rewrite slug 
   to use “products/custom-post-type”
 * I also created archive pages for each post type. (archive-custom_post_type.php)
 * I have an actual wp page called “products” that links off to the 3 custom post
   type archive pages. Then from there they can find links to individual products.
 * As far as my permalinks, everything is fine. When I view a individual product
   my permalink looks like mydomain.com/products/custom-post-type/product-name
 * The issue I have, which is the same as igloogog, is I need “products” to display
   in the Yoast SEO breadcrumbs that links the “product” page I created.
 * Currently my breadcrumbs look like:
 * Home > custom post type > product name
 * where I need it to look like
 * Home > products > custom post type > product name
 * and the “products” needs to link the page I have called products.
 * Anyone have any suggestions?
 * Thanks in advance!
 *  [Anniechocs](https://wordpress.org/support/users/anniechocs/)
 * (@anniechocs)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/custom-post-types-in-breadcrumbs/#post-6527076)
 * HI, I would also like to know this. I have the structure mysite.com/customposttype/
   post123/ and home>customposttype>post123 works in the breadcrumbs.
 * However, I have a link back from the page “post123” to the archive page “customposttype”
   and when you follow this link the breadcrumb reads home>post123 instead of home
   >customposttype.
 * Any help appreciated!

Viewing 3 replies - 1 through 3 (of 3 total)

 The topic ‘Custom Post Types and rewrite slug in breadcrumbs’ is closed to new 
replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)

 * 3 replies
 * 3 participants
 * Last reply from: [Anniechocs](https://wordpress.org/support/users/anniechocs/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/custom-post-types-in-breadcrumbs/#post-6527076)
 * Status: resolved