<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>RLM &#187; post object</title>
	<atom:link href="http://www.rlmseo.com/blog/tag/post-object/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rlmseo.com</link>
	<description></description>
	<lastBuildDate>Tue, 31 Jan 2012 03:37:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Updated: WordPress $post Object Quick Reference</title>
		<link>http://www.rlmseo.com/blog/updated-wordpress-post-object-quick-reference/</link>
		<comments>http://www.rlmseo.com/blog/updated-wordpress-post-object-quick-reference/#comments</comments>
		<pubDate>Fri, 28 May 2010 00:17:45 +0000</pubDate>
		<dc:creator>jcrens8392</dc:creator>
				<category><![CDATA[Advanced WordPress]]></category>
		<category><![CDATA[$post]]></category>
		<category><![CDATA[cheatsheets]]></category>
		<category><![CDATA[post object]]></category>

		<guid isPermaLink="false">http://www.rlmseo.com/blog/?p=1014</guid>
		<description><![CDATA[Looking for a cheatsheet for the contents of WordPress&#8217; $post object? I just updated a reference I posted a while back. Get it here: WordPress $post Object Cheatsheet]]></description>
			<content:encoded><![CDATA[<p>Looking for a cheatsheet for the contents of WordPress&#8217; $post object? I just updated a reference I posted a while back.</p>
<p>Get it here: <a title="WordPress post object reference" href="http://www.rlmseo.com/blog/wordpress-post-variable-quick-reference/">WordPress $post Object Cheatsheet</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rlmseo.com/blog/updated-wordpress-post-object-quick-reference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress $post Object Quick Reference</title>
		<link>http://www.rlmseo.com/blog/wordpress-post-variable-quick-reference/</link>
		<comments>http://www.rlmseo.com/blog/wordpress-post-variable-quick-reference/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 03:57:14 +0000</pubDate>
		<dc:creator>jcrens8392</dc:creator>
				<category><![CDATA[Advanced WordPress]]></category>
		<category><![CDATA[$post]]></category>
		<category><![CDATA[object]]></category>
		<category><![CDATA[post array]]></category>
		<category><![CDATA[post object]]></category>
		<category><![CDATA[Settings]]></category>

		<guid isPermaLink="false">http://www.rlmseo.com/?p=66</guid>
		<description><![CDATA[This is a quick reference chart for the Wordpress $post object. The post object holds things like the post title, number of comments, status, date and time of last modification, and numerous other attributes.]]></description>
			<content:encoded><![CDATA[<p>This quick reference 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 and download a PDF version at the bottom of this post. </p>
<p>The values in the chart below can be accessed for a given post within the loop using the following syntax:</p>
<pre>$post-&gt;$key;</pre>
<p>…where key is the property you want to access below. For example, you&#8217;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&#8217;s no post excerpt I don&#8217;t want that div element showing up empty, so in that case, I hide it using the following code:</p>
<pre>&lt;?php
if($post-&gt;post_excerpt != '') :
    echo '&lt;div id=&quot;summary&quot;&gt;';
    echo '&lt;strong&gt;Summary:&lt;/strong&gt;&lt;br /&gt;';
    the_excerpt();
    echo '&lt;/div&gt;';
endif;
?&gt;</pre>
<table>
<tr>
<th>Property</th>
<th>Sample Value</th>
<th>Notes</th>
</tr>
<tr>
<td>post_author</td>
<td>1</td>
<td>Post author&#8217;s user number</td>
</tr>
<tr>
<td>post_date</td>
<td>2008-03-15 19:22:29</td>
<td></td>
</tr>
<tr>
<td>post_date_gmt</td>
<td>2008-03-16 02:22:29</td>
<td>GMT = Greenwich Mean Time</td>
</tr>
<tr>
<td>post_content</td>
<td></td>
<td>Actual post content, including markup</td>
</tr>
<tr>
<td>post_title</td>
<td></td>
<td>Post title</td>
</tr>
<tr>
<td>post_category</td>
<td>0</td>
<td>Number representing post category ID#</td>
</tr>
<tr>
<td>post_excerpt</td>
<td></td>
<td>Plain text without markup</td>
</tr>
<tr>
<td>post_status</td>
<td>publish, pending, draft, private, inherit</td>
<td>Current status of the post</td>
</tr>
<tr>
<td>comment_status</td>
<td>open</td>
<td>Possible values: open / closed</td>
</tr>
<tr>
<td>ping_status</td>
<td>open</td>
<td>open / closed</td>
</tr>
<tr>
<td>post_password</td>
<td></td>
<td>Will be empty if no password</td>
</tr>
<tr>
<td>post_name</td>
<td>statistics</td>
<td>Same as post slug</td>
</tr>
<tr>
<td>to_ping</td>
<td>http://www.1to-ping.com, http://www.2to-ping.com, http://www.3to-ping.com</td>
<td>List of urls to ping when post is published (for unpublished posts)</td>
</tr>
<tr>
<td>pinged</td>
<td>http://www.pinged1.com, http://www.pinged2.com, http://www.pinged3.com</td>
<td>List of urls that have been pinged (for published posts)</td>
</tr>
<tr>
<td>post_modified</td>
<td>2008-07-01 19:41:28</td>
<td>Date the post was last modified</td>
</tr>
<tr>
<td>post_modified_gmt</td>
<td>2008-07-02 02:41:28</td>
<td>GMT date post was last modified</td>
</tr>
<tr>
<td>post_content_filtered</td>
<td></td>
<td>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.</td>
</tr>
<tr>
<td>post_parent</td>
<td></td>
<td>ID# of this post&#8217;s parent. In the case of attachments, will be the post it&#8217;s attached to. Defaults to 0 if no parent.</td>
</tr>
<tr>
<td>guid</td>
<td>http://www.blogurl/postslug</td>
<td>Global Unique Identifier. The &#8220;real&#8221; 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.</td>
</tr>
<tr>
<td>menu_order</td>
<td>0<br />1<br />2<br />etc&#8230;</td>
<td>Holds values for display order of pages. Only works with pages, not posts.</td>
</tr>
<tr>
<td>post_type</td>
<td>page<br />post<br />attachment<br />revision</td>
<td>Self-explanatory for pages and posts. Any files uploaded are attachments and post revisions saved as revision</td>
</tr>
<tr>
<td>post_mime_type</td>
<td>text/html<br />image/png<br />image/jpg</td>
<td>Only used for files (attachments). Contains the MIME type of the uploaded file.</td>
</tr>
<tr>
<td>comment_count</td>
<td>4</td>
<td>Number of comments, pings, and trackbacks combined</td>
</tr>
</table>
<p><em>Thanks to all you who commented on this post to help fill in some of the missing values!</em></p>
<p><a href='http://www.rlmseo.com/wp-content/uploads/2008/07/WP-Post-Object-Quick-Reference.pdf'>Download the WordPress Post Object Quick Reference (PDF)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rlmseo.com/blog/wordpress-post-variable-quick-reference/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
	</channel>
</rss>

