10/22/2015 at 7:42 pm
#351481
Guest
I made a mistake. Here are the correct var_dumps for $post. The var_dumps() for $wp_query->post were correct.
404
- $post =
object(WP_Post)#3009 (24) {
["ID"]=>
int(110)
["post_author"]=>
string(1) "2"
["post_date"]=>
string(19) "2015-09-20 03:11:02"
["post_date_gmt"]=>
string(19) "2015-09-20 02:11:02"
["post_content"]=>
string(3390) "Contents of page were here"
["post_title"]=>
string(25) "Declutter Before You Move"
["post_excerpt"]=>
string(0) ""
["post_status"]=>
string(7) "publish"
["comment_status"]=>
string(4) "open"
["ping_status"]=>
string(4) "open"
["post_password"]=>
string(0) ""
["post_name"]=>
string(25) "declutter-before-you-move"
["to_ping"]=>
string(0) ""
["pinged"]=>
string(0) ""
["post_modified"]=>
string(19) "2015-09-20 03:43:45"
["post_modified_gmt"]=>
string(19) "2015-09-20 02:43:45"
["post_content_filtered"]=>
string(0) ""
["post_parent"]=>
int(0)
["guid"]=>
string(38) "http://www.example.com/?p=110"
["menu_order"]=>
int(0)
["post_type"]=>
string(4) "post"
["post_mime_type"]=>
string(0) ""
["comment_count"]=>
string(1) "0"
["filter"]=>
string(3) "raw"
}
Known Page (Not a Connections page)
- $post =
object(WP_Post)#3016 (24) {
["ID"]=>
int(110)
["post_author"]=>
string(1) "2"
["post_date"]=>
string(19) "2015-09-20 03:11:02"
["post_date_gmt"]=>
string(19) "2015-09-20 02:11:02"
["post_content"]=>
string(3390) "Contents of page were here"
["post_title"]=>
string(25) "Declutter Before You Move"
["post_excerpt"]=>
string(0) ""
["post_status"]=>
string(7) "publish"
["comment_status"]=>
string(4) "open"
["ping_status"]=>
string(4) "open"
["post_password"]=>
string(0) ""
["post_name"]=>
string(25) "declutter-before-you-move"
["to_ping"]=>
string(0) ""
["pinged"]=>
string(0) ""
["post_modified"]=>
string(19) "2015-09-20 03:43:45"
["post_modified_gmt"]=>
string(19) "2015-09-20 02:43:45"
["post_content_filtered"]=>
string(0) ""
["post_parent"]=>
int(0)
["guid"]=>
string(38) "http://www.example.com/?p=110"
["menu_order"]=>
int(0)
["post_type"]=>
string(4) "post"
["post_mime_type"]=>
string(0) ""
["comment_count"]=>
string(1) "0"
["filter"]=>
string(3) "raw"
}