[wp-docs] is_tax()

Andrew Nacin wp at andrewnacin.com
Wed Jan 26 12:04:13 UTC 2011


On Thu, Jan 13, 2011 at 12:29 PM, Chip Bennett <chip at chipbennett.net> wrote:

> Hi Codexers!
>
> I would like to update the is_tax()<http://codex.wordpress.org/Function_Reference/is_tax>function reference page, to list all of the core-registered taxonomies
> (category, post_tag, nav_menu, link_category, post_format), with examples of
> how to call/use each one. Is there a particular Section to which I should
> add this information, or a particular format I should use?
>
> Thanks in advance,
>
> Chip
>

Keep in mind that is_tax() is useless for link categories and navigation
menus, as they don't have archive pages. It's also useless for categories
and tags, because is_tax() is exclusively custom taxonomies, and returns
false for these.

It *does* work for post formats, but it looks like we should be adding a
wrapper function there for a conditional tag for post format pages. I'll
take a look on adding one. Otherwise though, is_tax() is only useful for
custom, non-core taxonomies.

Cheers,
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.automattic.com/pipermail/wp-docs/attachments/20110126/026f118e/attachment.htm>


More information about the wp-docs mailing list