{"id":6526592,"date":"2015-09-09T09:27:02","date_gmt":"2015-09-09T09:27:02","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/custom-post-types-in-breadcrumbs\/"},"modified":"2016-08-30T17:47:24","modified_gmt":"2016-08-30T17:47:24","slug":"custom-post-types-in-breadcrumbs","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/custom-post-types-in-breadcrumbs\/","title":{"rendered":"Custom Post Types and rewrite slug in breadcrumbs"},"content":{"rendered":"<p>Hello,<\/p>\n<p>thanks for a ridiculously good plugin!<\/p>\n<p>I&#8217;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 &#8216;news&#8217;.<\/p>\n<p>So urls would look like this ..<\/p>\n<p>site.com\/news\/awards\/post-name<br \/>\nsite.com\/news\/events\/post-name<\/p>\n<p>etc..<\/p>\n<p>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.<\/p>\n<p>I can see how to set the breadcrumbs to show category.<\/p>\n<p>Is there a way to customise this to reflect the structure of my CPT and the custom slug?<\/p>\n<p>So like this:<\/p>\n<p>home\/news\/events\/post-name<\/p>\n<p>Rather than <\/p>\n<p>home\/post-name<\/p>\n<p>Is this possible and if so can you please advise or point me in the direction?<\/p>\n<p>Thanks!<\/p>\n<p>https:\/\/wordpress.org\/plugins\/wordpress-seo\/<\/p>\n","protected":false},"template":"","class_list":["post-6526592","topic","type-topic","status-publish","hentry","topic-tag-custom"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6526592","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6526592\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6526592"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}