wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
wp-includes/query.php › WordPress File
Funktionen47
› WordPress Query API
| Funktion | Kurzbeschreibung |
|---|---|
| generate_postdata | Generates post data. |
| get_queried_object | Retrieves the currently queried object. |
| get_queried_object_id | Retrieves the ID of the currently queried object. |
| get_query_var | Retrieves the value of a query variable in the WP_Query class. |
| have_comments | Determines whether current WordPress query has comments to loop over. |
| have_posts | Determines whether current WordPress query has posts to loop over. |
| in_the_loop | Determines whether the caller is in the Loop. |
| is_404 | Determines whether the query has resulted in a 404 (returns no results). |
| is_archive | Determines whether the query is for an existing archive page. |
| is_attachment | Determines whether the query is for an existing attachment page. |
| is_author | Determines whether the query is for an existing author archive page. |
| is_category | Determines whether the query is for an existing category archive page. |
| is_comment_feed | Is the query for a comments feed? |
| is_date | Determines whether the query is for an existing date archive. |
| is_day | Determines whether the query is for an existing day archive. |
| is_embed | Is the query for an embedded post? |
| is_favicon | Is the query for the favicon.ico file? |
| is_feed | Determines whether the query is for a feed. |
| is_front_page | Determines whether the query is for the front page of the site. |
| is_home | Determines whether the query is for the blog homepage. |
| is_main_query | Determines whether the query is the main query. |
| is_month | Determines whether the query is for an existing month archive. |
| is_page | Determines whether the query is for an existing single page. |
| is_paged | Determines whether the query is for a paged result and not for the first page. |
| is_post_type_archive | Determines whether the query is for an existing post type archive page. |
| is_preview | Determines whether the query is for a post or page preview. |
| is_privacy_policy | Determines whether the query is for the Privacy Policy page. |
| is_robots | Is the query for the robots.txt file? |
| is_search | Determines whether the query is for a search. |
| is_single | Determines whether the query is for an existing single post. |
| is_singular | Determines whether the query is for an existing single post of any post type (post, attachment, page, custom post types). |
| is_tag | Determines whether the query is for an existing tag archive page. |
| is_tax | Determines whether the query is for an existing custom taxonomy archive page. |
| is_time | Determines whether the query is for a specific time. |
| is_trackback | Determines whether the query is for a trackback endpoint call. |
| is_year | Determines whether the query is for an existing year archive. |
| query_posts | Sets up The Loop with query parameters. |
| rewind_posts | Rewind the loop posts. |
| setup_postdata | Set up global post data. |
| set_query_var | Sets the value of a query variable in the WP_Query class. |
| the_comment | Iterate comment index in the comment loop. |
| the_post | Iterate the post index in the loop. |
| wp_old_slug_redirect | Redirect old slugs to the correct permalink. |
| wp_reset_postdata | After looping through a separate query, this function restores the $post global to the current post in the main query. |
| wp_reset_query | Destroys the previous query and sets up a new query. |
| _find_post_by_old_date | Find the post ID for redirecting an old date. |
| _find_post_by_old_slug | Find the post ID for redirecting an old slug. |