WP_Query with child element
Change $data = get_post_meta(get_the_ID(),’_event_data’,true); to $data = get_post_meta(get_the_ID(),’_event_data’,false); As stated in the Code Reference, Return: (mixed) Will be an array if $single is false. Will be value of meta data field if $single is true. But somehow I’d just guess that _event_data doesn’t hold much more than the actual (event-) ID. You’d probably have to … Read more