is_tax() and get_taxonomy_template() support for post formats
|Reported by:||nacin||Owned by:|
Two things it seemed we forgot.
Currently you'd need to use is_tax() as a conditional tag for post formats. This is ugly, as it looks like this:
Ideally, that slug should be internal. So we need a is_post_format() conditional tag. That's probably a lame name (most is_* functions are ambigious), and perhaps someone has a better idea.
Additionally, get_taxonomy_template() currently looks for taxonomy-$taxonomy-$term.php. That turns into taxonomy-post_format-post-format-aside.php. A simple check can allow us to instead (or in addition to) look for taxonomy-post_format-aside.php.
Change History (6)
- Keywords 2nd-opinion added
- Milestone changed from Awaiting Review to Future Release
- Type changed from defect (bug) to enhancement