WordPress at a glance
Home Functions From tag: WP Loop

WP Loop (tag)

get_the_author()

Retrieve the author of the current post.

get_the_author_link()

Retrieve either author's link or author's name.

get_the_content()

Gets the content of the current post. Must be used inside the WordPress loop.

get_the_excerpt()

Retrieves the excerpt of current or defined post. By default, should be used in WordPress Loop.

get_the_ID()

Retrieve the ID of the current post in the WordPress Loop. Can be used only inside the loop.

get_the_tag_list()

Retrieve the tags for a post formatted as a string.

get_the_tags()

Retrieve an array of post tags. Each array element is a WP_Term object. Can be used within The Loop.

setup_postdata()

Set up the global post data. Useful for easy usage of Template Tags related to the design of the post: the_title(), the_permalink(), etc.

the_author()

Display the name of the author of the current post.

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_ID()

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

the_permalink()

Displays link (URL) to the post that is currently being processed in the Loop.

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_tags()

Retrieve the tags for a post.

the_time()

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