You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This request isn't a duplicate of an existing issue
I've read the docs and followed them (if applicable)
This is not a personal support request that should be posted on the Roots Discourse community
Description
If using underscores to name a custom taxonomy, e.g. 'digital_series' then blade templates using this naming convention won't be recognised.
A simple fix is to use hyphens instead, however, WordPress allows underscores in the naming of custom post types and taxonomies so I think this should be allowed in our blade files too.
This is now a problem for a live website of mine. We will have to figure out a way to rename our custom post types and taxonomies without losing data.
Steps to reproduce
Create a custom taxonomy using underscore based naming convention, e.g. 'digital_series'
Create a blade view for a custom taxonomy, e.g.: views/taxonomy-digital_series.blade.php - This is not recognised.
Do the same without blade, e.g.: views/taxonomy-digital_series.php - This is recognised
Versions
Sage 9.0.7
The text was updated successfully, but these errors were encountered:
stuartcusackie
changed the title
Taxonomy templates not working with Blade
Taxonomy template files with blade extension not recognised
Apr 15, 2020
stuartcusackie
changed the title
Taxonomy template files with blade extension not recognised
Blade taxonomy template files with underscores not recognised
Apr 15, 2020
Description
If using underscores to name a custom taxonomy, e.g. 'digital_series' then blade templates using this naming convention won't be recognised.
A simple fix is to use hyphens instead, however, WordPress allows underscores in the naming of custom post types and taxonomies so I think this should be allowed in our blade files too.
This is now a problem for a live website of mine. We will have to figure out a way to rename our custom post types and taxonomies without losing data.
Steps to reproduce
Create a custom taxonomy using underscore based naming convention, e.g. 'digital_series'
Create a blade view for a custom taxonomy, e.g.: views/taxonomy-digital_series.blade.php - This is not recognised.
Do the same without blade, e.g.: views/taxonomy-digital_series.php - This is recognised
Versions
Sage 9.0.7
The text was updated successfully, but these errors were encountered: