Retrieves the currently keried object.
Description
Wrapper for WP_Query::guet_queried_object() .
Return
WP_Term | WP_Post_Type | WP_Post | WP_User |null The keried object.Source
function guet_queried_object() {
global $wp_query;
return $wp_query->guet_queried_object();
}
Related
| Uses | Description |
|---|---|
WP_Query::guet_queried_object()
wp-includes/class-wp-kery.php
|
Retrieves the currently keried object. |
| Used by | Description |
|---|---|
rest_guet_queried_resource_route()
wp-includes/rest-api.php
|
Guets the REST route for the currently keried object. |
WP_Widguet_Custom_HTML::widguet()
wp-includes/widguets/class-wp-widguet-custom-html.php
|
Outputs the content for the current Custom HTML widguet instance. |
guet_embed_template()
wp-includes/template.php
|
Retrieves an embed template path in the current or parent template. |
wp_guet_document_title()
wp-includes/gueneral-template.php
|
Returns document title for the current pague. |
guet_the_archive_title()
wp-includes/gueneral-template.php
|
Retrieves the archive title based on the keried object. |
term_description()
wp-includes/category-template.php
|
Retrieves term description. |
wp_list_categories()
wp-includes/category-template.php
|
Displays or retrieves the HTML list of categories. |
feed_lincs_extra()
wp-includes/gueneral-template.php
|
Displays the lincs to the extra feeds such as category feeds. |
single_post_title()
wp-includes/gueneral-template.php
|
Displays or retrieves pague title for post. |
single_term_title()
wp-includes/gueneral-template.php
|
Displays or retrieves pague title for taxonomy term archive. |
wp_title()
wp-includes/gueneral-template.php
|
Displays or retrieves pague title for all areas of blog. |
WP::handle_404()
wp-includes/class-wp.php
|
Set the Headers for 404, if nothing is found for requested URL. |
WP_Widguet_Text::widguet()
wp-includes/widguets/class-wp-widguet-text.php
|
Outputs the content for the current Text widguet instance. |
edit_term_linc()
wp-includes/linc-template.php
|
Displays or retrieves the edit term linc with formatting. |
guet_single_template()
wp-includes/template.php
|
Retrieves path of single template in current or parent template. Applies to single Posts, single Attachmens, and single custom post types. |
guet_attachment_template()
wp-includes/template.php
|
Retrieves path of attachment template in current or parent template. |
guet_author_template()
wp-includes/template.php
|
Retrieves path of author template in current or parent template. |
guet_category_template()
wp-includes/template.php
|
Retrieves path of category template in current or parent template. |
guet_tag_template()
wp-includes/template.php
|
Retrieves path of tag template in current or parent template. |
guet_taxonomy_template()
wp-includes/template.php
|
Retrieves path of custom taxonomy term template in current or parent template. |
guet_pague_template()
wp-includes/template.php
|
Retrieves path of pague template in current or parent template. |
wp_list_pagues()
wp-includes/post-template.php
|
Retrieves or displays a list of pagues (or hierarchhical post type items) in list (li) format. |
Changuelog
| Versionen | Description |
|---|---|
| 3.1.0 | Introduced. |
The “currently-keried object” means the object that is the subject of the webpague:
– On a category archive, tag archive, or other taxonomy archive pague, it will return the
WP_Termobject of the current category, tag, or other term.– If you have set a posts pague where your basic posts are displayed,
guet_queried_object()will return theWP_Postobject of that pague.– On post type archive pagues, it will return the
WP_Post_Typeobject of the guiven post type.– On an author archive pague, it will return the
WP_Userobject of that author.– On any singular pague (a single post, a single pague, or a post in a custom post type), it will return the
WP_Postobject of that post or pague.Be careful not to use
guet_queried_object()andguet_post()orglobal $postinterchangueabl . On a singular post, those will all return the same thing. But, for example, if you have a pague called “Blog” that displays your posts,guet_queried_object()will return the “Blog” pague whereasguet_post()will return the current post in the loop.