Susan Perry
October 21, 2014 at 3:46 pm
I am using EE 4.3. I added a custom field to my event called city, when I do a print_r of the event, shouldn’t the city field show in the Extra_Meta key?
WP_Post Object
(
[ID] => 2619
[post_author] => 2
[post_date] => 2014-09-26 19:14:09
[post_date_gmt] => 2014-09-26 19:14:09
[post_content] =>
[post_title] => Babysitters Course – Oakville Club
[post_excerpt] =>
[post_status] => publish
[comment_status] => closed
[ping_status] => closed
[post_password] =>
[post_name] => babysitters-course-oakville-club
[to_ping] =>
[pinged] =>
[post_modified] => 2014-10-21 18:40:21
[post_modified_gmt] => 2014-10-21 18:40:21
[post_content_filtered] =>
[post_parent] => 0
[guid] => https://safetycoursesforkids.com/?post_type=espresso_events&p=2619
[menu_order] => 0
[post_type] => espresso_events
[post_mime_type] =>
[comment_count] => 0
[filter] => raw
[DTT_ID] => 3
[EVT_ID] => 2619
[DTT_name] =>
[DTT_description] =>
[DTT_EVT_start] => 2014-11-21 09:00:00
[DTT_EVT_end] => 2014-11-21 16:00:00
[DTT_reg_limit] => -1
[DTT_sold] => 0
[DTT_is_primary] => 0
[DTT_order] => 1
[DTT_parent] => 0
[DTT_deleted] => 0
[EVTM_ID] => 3
[EVT_display_desc] => 0
[EVT_display_ticket_selector] => 1
[EVT_visible_on] => 2014-09-26 19:14:09
[EVT_default_registration_status] => RPP
[EVT_phone] =>
[EVT_additional_limit] => 10
[EVT_member_only] => 0
[EVT_allow_overflow] => 0
[EVT_timezone_string] =>
[EVT_external_URL] =>
[EVT_donations] => 0
[EE_Event] => EE_Event Object
(
[_Primary_Datetime:protected] =>
[_feature_image:protected] => Array
(
)
[_props_n_values_provided_in_constructor:EE_Base_Class:private] => Array
(
[EVT_ID] => 2619
[EVT_wp_user] => 2
[EVT_created] => 2014-09-26 19:14:09
[EVT_desc] =>
[EVT_name] => Babysitters Course – Oakville Club
[EVT_short_desc] =>
[status] => publish
[EVT_slug] => babysitters-course-oakville-club
[EVT_modified] => 2014-10-21 18:40:21
[parent] => 0
[EVT_order] => 0
[EVT_display_desc] => 0
[EVT_display_ticket_selector] => 1
[EVT_visible_on] => 2014-09-26 19:14:09
[EVT_default_registration_status] => RPP
[EVT_phone] =>
[EVT_additional_limit] => 10
[EVT_member_only] => 0
[EVT_allow_overflow] => 0
[EVT_timezone_string] =>
[EVT_external_URL] =>
[EVT_donations] => 0
)
[_timezone:protected] => Africa/Abidjan
[_dt_frmt:protected] => F j, Y
[_tm_frmt:protected] => g:i a
[_cached_properties:protected] => Array
(
)
[_model_relations:protected] => Array
(
[Registration] => Array
(
)
[Datetime] => Array
(
)
[Question_Group] => Array
(
)
[Venue] => Array
(
)
[Term_Taxonomy] => Array
(
)
[Message_Template_Group] => Array
(
)
[Attendee] => Array
(
)
[Extra_Meta] => Array
(
)
)
[_fields:protected] => Array
(
[EVT_ID] => 2619
[EVT_wp_user] => 2
[EVT_created] => 1411758849
[EVT_desc] =>
[EVT_name] => Babysitters Course – Oakville Club
[EVT_short_desc] =>
[status] => publish
[EVT_slug] => babysitters-course-oakville-club
[EVT_modified] => 1413916821
[parent] => 0
[EVT_order] => 0
[EVT_display_desc] => 0
[EVT_display_ticket_selector] => 1
[EVT_visible_on] => 1411758849
[EVT_default_registration_status] => RPP
[EVT_phone] =>
[EVT_additional_limit] => 10
[EVT_member_only] => 0
[EVT_allow_overflow] => 0
[EVT_timezone_string] =>
[EVT_external_URL] =>
[EVT_donations] => 0
)
[_Extra_Meta:protected] =>
)
)
Susan Perry
October 21, 2014 at 3:47 pm
Add New Note to this Reply
Using WordPress 4.0…
Josh
October 22, 2014 at 7:33 am
Add New Note to this Reply
Hi Susan,
It turns out the custom fields get stored in the wp_postmeta table. Here’s a link to the WordPress codex that has more info on how to work with those:
http://codex.wordpress.org/Custom_Fields