get_post: print_r
WP_Post Object
(
[ID] => 5981
[post_author] => 5
[post_date] => 2019-06-18 11:32:53
[post_date_gmt] => 2019-06-18 18:32:53
[post_content] =>
[post_title] => Solano County Water Agency
[post_excerpt] =>
[post_status] => publish
[comment_status] => closed
[ping_status] => closed
[post_password] =>
[post_name] => solano-county-water-agency
[to_ping] =>
[pinged] =>
[post_modified] => 2019-06-18 11:33:59
[post_modified_gmt] => 2019-06-18 18:33:59
[post_content_filtered] =>
[post_parent] => 0
[guid] => https://www.nbwatershed.org/?post_type=member_agencies&p=5981
[menu_order] => 0
[post_type] => member_agencies
[post_mime_type] =>
[comment_count] => 0
[filter] => raw
)
get_post: var_dump
/var/www/www.nbwatershed.org/wp-content/themes/infinite-child/single-member_agencies.php:25:
object(WP_Post)[7560]
public 'ID' => int 5981
public 'post_author' => string '5' (length=1)
public 'post_date' => string '2019-06-18 11:32:53' (length=19)
public 'post_date_gmt' => string '2019-06-18 18:32:53' (length=19)
public 'post_content' => string '' (length=0)
public 'post_title' => string 'Solano County Water Agency' (length=26)
public 'post_excerpt' => string '' (length=0)
public 'post_status' => string 'publish' (length=7)
public 'comment_status' => string 'closed' (length=6)
public 'ping_status' => string 'closed' (length=6)
public 'post_password' => string '' (length=0)
public 'post_name' => string 'solano-county-water-agency' (length=26)
public 'to_ping' => string '' (length=0)
public 'pinged' => string '' (length=0)
public 'post_modified' => string '2019-06-18 11:33:59' (length=19)
public 'post_modified_gmt' => string '2019-06-18 18:33:59' (length=19)
public 'post_content_filtered' => string '' (length=0)
public 'post_parent' => int 0
public 'guid' => string 'https://www.nbwatershed.org/?post_type=member_agencies&p=5981' (length=66)
public 'menu_order' => int 0
public 'post_type' => string 'member_agencies' (length=15)
public 'post_mime_type' => string '' (length=0)
public 'comment_count' => string '0' (length=1)
public 'filter' => string 'raw' (length=3)
get_post_meta: print_r
Array
(
[_edit_lock] => Array
(
[0] => 1562954103:3
)
[_edit_last] => Array
(
[0] => 5
)
[membership_type] => Array
(
[0] =>
)
[_membership_type] => Array
(
[0] => field_5b5fad2c529fa
)
[delegate] => Array
(
[0] => Elizabeth Patterson
)
[_delegate] => Array
(
[0] => field_5b5fad79529fb
)
[alternate] => Array
(
[0] => Roland Sanford
)
[_alternate] => Array
(
[0] => field_5b5fada0529fc
)
[url] => Array
(
[0] => http://www.scwa2.com/
)
[_url] => Array
(
[0] => field_5b6c9240bd881
)
[slide_template] => Array
(
[0] => default
)
)
get_post_meta: var_dump
/var/www/www.nbwatershed.org/wp-content/themes/infinite-child/single-member_agencies.php:35:
array (size=11)
'_edit_lock' =>
array (size=1)
0 => string '1562954103:3' (length=12)
'_edit_last' =>
array (size=1)
0 => string '5' (length=1)
'membership_type' =>
array (size=1)
0 => string '' (length=0)
'_membership_type' =>
array (size=1)
0 => string 'field_5b5fad2c529fa' (length=19)
'delegate' =>
array (size=1)
0 => string 'Elizabeth Patterson ' (length=20)
'_delegate' =>
array (size=1)
0 => string 'field_5b5fad79529fb' (length=19)
'alternate' =>
array (size=1)
0 => string 'Roland Sanford ' (length=15)
'_alternate' =>
array (size=1)
0 => string 'field_5b5fada0529fc' (length=19)
'url' =>
array (size=1)
0 => string 'http://www.scwa2.com/' (length=21)
'_url' =>
array (size=1)
0 => string 'field_5b6c9240bd881' (length=19)
'slide_template' =>
array (size=1)
0 => string 'default' (length=7)