Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

User:Jefte/the post

This article is a ROUGH DRAFT. The author is still working on this document, so please do not edit this without the author's permission. The content within this article may not yet be verified or valid. This information is subject to change.

Function: the_post()

The function the_post() takes the current item in the collection of posts and makes it available for use inside this iteration of The Loop. Without the_post(), many of the Template Tags used in your theme would not work.

Once the post data is made available, the template can start showing post data to the visitor.


See The Loop in Action#Generating_the_Post