10/22/2015 at 7:34 pm
#351480
Guest
Thanks for your patience so far Steven. I can see your point about working with many developers. I also feel WordPress development is messy… it is a fantastic platform but it feels like it’s been hacked form early version of code rather than designed from the ground up. I guess we have to work with what we have… a great platform… that’s a bit hacky at times. As developers it makes it hard to do things the ‘right way’. Your compromises are sound.
Apologies for missing your var_dump() comment. That was a good call.
Here are the results of the var_dumps() you requested:
404
- $page (undefined causing an error)
- $wp_query->post = NULL
Known page [not a Connections page – let me know if you want that]
- $page (undefined causing an error)
- $wp_query->post = [SEE BELOW]
object(WP_Post)#2773 (24) {
["ID"]=>
int(225)
["post_author"]=>
string(1) "2"
["post_date"]=>
string(19) "2015-09-25 15:56:23"
["post_date_gmt"]=>
string(19) "2015-09-25 14:56:23"
["post_content"]=>
string(1939) "Contents of page were here
"
["post_title"]=>
string(31) "Find Rented Property"
["post_excerpt"]=>
string(0) ""
["post_status"]=>
string(7) "publish"
["comment_status"]=>
string(6) "closed"
["ping_status"]=>
string(6) "closed"
["post_password"]=>
string(0) ""
["post_name"]=>
string(31) "find-rented-property"
["to_ping"]=>
string(0) ""
["pinged"]=>
string(0) ""
["post_modified"]=>
string(19) "2015-10-05 20:46:48"
["post_modified_gmt"]=>
string(19) "2015-10-05 19:46:48"
["post_content_filtered"]=>
string(0) ""
["post_parent"]=>
int(0)
["guid"]=>
string(44) "http://www.example.com/?page_id=225"
["menu_order"]=>
int(0)
["post_type"]=>
string(4) "page"
["post_mime_type"]=>
string(0) ""
["comment_count"]=>
string(1) "0"
["filter"]=>
string(3) "raw"
}
