29 Oct 2014
WordPress: $post Object Attributes
The $post object is used constantly in WordPress. Whether you are developing a custom theme or even a WordPress plugin, you may very likely end up utilizing the $post object to grab data from posts. And so, in that regard, it’s useful to have a simple list of $post attributes for reference.
If you are familiar with the WordPress API, then many of the attributes are actually pretty obvious/ However, if you ever forget any of them, well, here you go!
$post->post_author $post->post_date $post->post_date_gmt $post->post_content $post->post_content_filtered $post->post_title $post->post_excerpt $post->post_status $post->post_type $post->comment_status $post->ping_status $post->post_password $post->post_name $post->to_ping $post->pinged $post->post_modified $post->post_modified_gmt $post->post_parent $post->menu_order $post->guid
Hope it helped!