Blade taxonomy template problem: Don't use underscores when naming custom taxonomies

I have a custom taxonomy ‘Digital Series’ (digital_series) - note the use of the underscore.

When creating templates, this works:
views/taxonomy-digital_series.php
As is expected by the WordPress template hierarchy.

This does not:
views/taxonomy-digital_series.blade.php

An easy fix is to use hyphens instead of underscores when registering the taxonomy, but it can be a pain when you have a live website that already uses the underscore naming convention.

I have a github issue open about it: https://github.com/roots/sage/issues/2447

1 Like

This topic was automatically closed after 42 days. New replies are no longer allowed.