WordPress at a glance
Главная Functions Template Tags Posts, Pages, ...

Category: Posts, Pages, ... 41

body_class()

Display the classes for the body element.

get_attachment_link()

Retrieves the permalink for an attachment.

get_post_format()

Retrieve the format slug for a post

get_post_time()

Gets the time of the current post creation in the specified format. You can specify a return format (the default is Unix format). Must be used in WordPress loop.

get_the_date()

Gets the creation date of the current post. you can specify an arbitrary date output format. Used in a WordPress loop.

have_posts()

Checks if the current WP query has results for output, i.e. if there are posts available for output on the current page. Conditional tag.

in_the_loop()

Whether the caller is in the Loop.

next_image_link()

Displays next image link that has the same post parent.

next_post_link()

Displays a link (tag A) to the next post relative (by date) to the current post.

next_posts_link()

Displays the next posts page link.

post_class()

Display the classes for the post div.

post_password_required()

Whether post requires password and correct password has been provided.

posts_nav_link()

Displays the post pages link navigation for previous and next pages.

previous_image_link()

Displays previous image link that has the same post parent.

previous_post_link()

Displays a link to the previous (by date) post. The function must be used on separate pages (of the is_single() type).

previous_posts_link()

Displays the previous posts page link.

single_month_title()

Display or retrieve page title for post archive based on date.

single_post_title()

Displays or retrieve page title for post. Designed for use on individual post pages.

the_attachment_link()

Display an attachment page link using an image or icon.

the_category()

Display category list for a post in either HTML list or custom format.

the_content()

Display the post content. It is template tag and must be used inside the loop.

the_date()

Displays or Retrieve the date of the current post was written. Works with a group of posts (published on the same day).

the_excerpt()

Displays the excerpt (quote) of the post, with [...] at the end (but this is not a link to reading the full material).

the_excerpt_rss()

Display the post excerpt for the feed.

the_ID()

Display the ID of the current post in the WordPress Loop.

the_meta()

Display list of post custom fields.

the_modified_author()

Display the name of the author who last edited the current post, if the author's ID is available.

the_modified_date()

Display the date on which the post was last modified.

the_post()

Iterate the post index in the loop. Gets the next post, overrides the global variable $post, and sets in the loop property to true.

the_post_navigation()

Displays the HTML block of links to the next and previous posts. Uses on a single post page: is_singular().

the_search_query()

Displays the contents of the search query variable.

the_shortlink()

Displays the shortlink for a post.

the_tags()

Retrieve the tags for a post.

the_time()

Display the time (date) at which the post was written in the specified format.

the_title()

Display the current post title with optional HTML markup. It is accepted to use inside the WordPress Loop.

the_title_attribute()

Displays the title of the post prepared (sanitized) for use in the HTML attributes of HTML tag.

wp_get_attachment_image()

Get an HTML img element representing an image attachment

wp_get_attachment_image_src()

Retrieve an image to represent an attachment.

wp_get_attachment_link()

Retrieve an attachment page link using an image or icon, if possible.

wp_get_shortlink()

Returns a shortlink for a post, page, attachment, or site.

wp_link_pages()

The formatted output of a list of pages.