-
Notifications
You must be signed in to change notification settings - Fork 860
Breadcrumbs error (custom post types/taxonomies) #1088
Comments
by the way |
@olefredrik It shouldn't. @MrAndreius are you using another plugin for breadcrumbs? Are you using a plugin for custom permalinks? Did you try on one of the default themes and see if it works as expected for your situation? |
For Breadcrumbs, I found that if you have a lot of special Custom-Post and Taxonomies, the best way is to use the Yoast breadcrumbs part (from which I think the one in FP is inspired). |
@MrAndreius we need more info to be able to reproduce the bug. Please tell us the steps you took to get there. |
@olefredrik @colin-marshall and so on :\ I think first you need to get the content type, and then request its category |
@colin-marshall |
@colin-marshall |
@MrAndreius our breadcrumbs code came from here: The post has been updated to support custom post types and taxonomies after it was adapted for FoundationPress. We just need to make the updates they have in the new example. |
Yeah I used that updated code in a recent project and it worked fine with CPTs |
@colin-marshall it might be worth looking at https://github.com/justintadlock/breadcrumb-trail and use this code ? |
@MrAndreius as many people won’t even use breadcrumbs, im not sure how in depth we should support it. For now I would say we should support regular posts and WooCommerce but beyond that you should use a plugin for custom post types and taxonomies. |
@colin-marshall I totally agree. I was going to say something before but figured it was not my business. I would in fact remove the breadcrumbs code as it doesn't really work anymore anyways. There are a lot of other solutions like Yoast etc. for breadcrumbs. I'd much rather we spend time on making sure the "starter" theme is semantic and the build system is rock solid. |
@JPOak don't ever be afraid to speak up, the opinion of every user of FoundationPress is valued. We also want as many comments on stuff like this as possible so we can make the best decisions for the project. After looking further at that breadcrumb code, I also think it would be best to just remove it. It was copy pasted from that post and not even really adapted to Foundation's breadcrumb component. There's lot of unnecessary classes. I put in a feature request at justintadlock/breadcrumb-trail#33 to add options for custom classes and data-attributes to make it very easy to use that plugin with Foundation's breadcrumb syntax. Sounds like it's going to happen. |
PHP Notice: Trying to get property of non-object in \library\navigation.php on line 107
since the theme declare minimal support woocommerce
can use another function to display breadcrumbs?
The text was updated successfully, but these errors were encountered: