CPT Template Heirarchy..Sometimes home page, sometimes not?
-
Okee, this isn’t a huge deal, but I’d like to see what the deal is.
I would never have noticed this if not trying to sort out some SEO stuff.Anyway, I’ve installed an SEO plugin for meta junk, and breadcrumbs. That made me notice that (you can see the issue in the breadcrumb on each page)
https://www.rvoodoo.com/hockey/
This page is a subpage of Home. This is good, its what I want. Each CPT page is not home.https://www.rvoodoo.com/who-are-the-voodoo-empire/
This page comes up in the breadcrumb as home. (it is registered exactly the same as the above link, except I didn’t enable categories and tags)https://www.rvoodoo.com/the-voodoo-empire-shop/
This page also thinks its Home. The only difference in this when registered is a custom taxonomy.So all 3 CPTs are registered the same in code. All 3 have similar settings in my SEO plugin. Why do 2 pages think they are home, but one doesn’t? I would like for them all to not think they are home, so I can get proper breadcrumbs, and meta stuff
All 3 pages are top level (no parent), all 3 use custom templates (the only difference between templates is query by CPT and layout stuff). I can’t see any difference, or reason for this? It also keeps current class from being applied to the menu items for these for css purposes. I have found info about that, but the solutions offered only act as workarounds to get the class applied. They don’t remedy the situation
- The topic ‘CPT Template Heirarchy..Sometimes home page, sometimes not?’ is closed to new replies.