is_tax [ WordPress Function ]
| Parameters: |
|
| Uses: |
|
| See: |
|
| Returns: |
|
| Defined at: |
|
Is the query for a taxonomy archive page?
If the $taxonomy parameter is specified, this function will additionally check if the query is for that specific $taxonomy.
If the $term parameter is specified in addition to the $taxonomy parameter, this function will additionally check if the query is for one of the terms specified.
Source
<?php
function is_tax( $taxonomy = '', $term = '' ) {
global $wp_query;
if ( ! isset( $wp_query ) ) {
_doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' );
return false;
}
return $wp_query->is_tax( $taxonomy, $term );
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- Function Reference/is tax « WordPress Codex
Note that when used without the $taxonomy parameter, is_tax() returns false on category archives and tag archives. You should use is_category() and is_tag() ...
codex.wordpress.org - Conditional Tags « WordPress Codex
is_tax(): When any Taxonomy archive page is being displayed. is_tax( 'flavor' ): When a Taxonomy archive page for the flavor taxonomy is being displayed.
codex.wordpress.org - ISTAX Accounting & Tax Solutions, Burbank, CA : Reviews and ...
ISTAX Accounting & Tax Solutions, Burbank, CA : Reviews and maps - Yahoo! Local, 818.557.7557. Get Ratings, Reviews, Photos and more on Yahoo! Local.
local.yahoo.com - Michael Fields » is_tax()
is_tax(). One entry is associated with the term is_tax(). Subscribe. Post Title, Comment Count, Comment Link. Getting Down and Dirty with WP_Query->set() · 6 ...
wordpress.mfields.org