is_post_type_archive [ WordPress Function ]
is_post_type_archive ( $post_types = '' )
| Parameters: |
|
| Uses: |
|
| See: |
|
| Returns: |
|
| Defined at: |
|
Benzer Fonksiyonlar: is_post_type_hierarchical, post_type_archive_title, get_post_type_archive_link, get_post_type_archive_feed_link, set_post_type
Is the query for a post type archive page?
Source
<?php
function is_post_type_archive( $post_types = '' ) {
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_post_type_archive( $post_types );
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/is post type archive « WordPress Codex
Function Reference/is post type archive ... Usage. <?php is_post_type_archive( $ post_types ); ?> ... is_post_type_archive() is located in wp-includes/query.php .
codex.wordpress.org - WordPress › Support » Trouble with is_post_type_archive()
I have some content in my sidebar that I don't want to show in one of my archives for a custom post type. I tried using if (!is_post_type_archive('mytype')) , but it ...
wordpress.org - #16347 (is_post_type_archive doesn't return correctly outside of ...
The new is_post_type_archive function depends on the loop being started ($this- >posts set) to function correctly when post types are passed to the function.
core.trac.wordpress.org - [Plugin: Custom Post Type Archives] is_post_type_archive
function is_post_type_archive() is a function in wordpress 3.1 wp-includes/query. php, this needs to be renamed, you missed this one when you were doing ...
wordpress.org
Kullanýcý Tartýþmalarý [ wordpress.org ]
- coopersita on "Trouble with is_post_type_archive()"
- coopersita on "Trouble with is_post_type_archive()"
- Cristiano on "Trouble with is_post_type_archive()"
- Cristiano on "Trouble with is_post_type_archive()"
- coopersita on "Trouble with is_post_type_archive()"
- coopersita on "Trouble with is_post_type_archive()"