[wp-trac] [WordPress Trac] #16375: is_tax() and get_taxonomy_template() support for post formats
WordPress Trac
wp-trac at lists.automattic.com
Wed Jan 26 12:03:03 UTC 2011
#16375: is_tax() and get_taxonomy_template() support for post formats
--------------------------+-----------------------------
Reporter: nacin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
--------------------------+-----------------------------
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:
`is_tax('post_format', 'post-format-aside');`
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`.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16375>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list