This quick reference / cheatsheet is for the WordPress $post object. This object contains a bunch of info specific to each WordPress post. Scroll down for the complete table of object properties.
Download Printable versions (PDF)
Download PDF version (landscape orientation)
Download PDF version (portrait orientation)
How to use the $post object
The values in the chart below can be accessed for a given post within the loop using the following syntax:
…where key is the property you want to access below. For example, you'll notice at the top of this post is a post summary within a formatted div element. The summary is just a formatted version of the post excerpt, but if there's no post excerpt I don't want that div element showing up empty, so in that case, I hide it using the following code:
$post Object properties
||Post author's user number
||GMT = Greenwich Mean Time
||Actual post content, including markup
||Number representing post category ID#
||Plain text without markup
||publish, pending, draft, private, inherit
||Current status of the post
||Possible values: open / closed
||open / closed
||Will be empty if no password
||Same as post slug
||http://www.1to-ping.com, http://www.2to-ping.com, http://www.3to-ping.com
||List of urls to ping when post is published (for unpublished posts)
||http://www.pinged1.com, http://www.pinged2.com, http://www.pinged3.com
||List of urls that have been pinged (for published posts)
||Date the post was last modified
||GMT date post was last modified
||Exists to store a cached version of post content (most likely with all the the_content filters already applied). If you've got a plugin that runs a very resource heavy filter on content, you might consider caching the results with post_content_filtered, and calling that from the front end instead.
||ID# of this post's parent. In the case of attachments, will be the post it's attached to. Defaults to 0 if no parent.
||Global Unique Identifier. The "real" URL to the post, not the permalink version. For pages, this is the actual URL. In the case of files (attachments), this holds the URL to the file.
|Holds values for display order of pages. Only works with pages, not posts.
|Self-explanatory for pages and posts. Any files uploaded are attachments and post revisions saved as revision
|Only used for files (attachments). Contains the MIME type of the uploaded file.
||Number of comments, pings, and trackbacks combined
Thanks to everyone who commented on this post to help fill in some of the missing values!