term_id; echo get_term_meta( $org_id, 'org_location', true ); ?>,, , , , , , , , , term_id; ?> , , , , , , , , , , ID,'mep_org_address',true) ? get_post_meta($post->ID,'mep_org_address',true) : ''; ob_start(); if($location_sts){ $org_arr = get_the_terms( $post->ID, 'mep_org' ); $org_id = $org_arr[0]->term_id; ?>
,
,
,
,
,
,
,
,
,
,
ID,$event_meta); } add_action('mep_event_location_venue','mep_ev_venue'); function mep_ev_venue(){ global $post,$event_meta; $location_sts = get_post_meta($post->ID,'mep_org_address',true); if($location_sts){ $org_arr = get_the_terms( $post->ID, 'mep_org' ); $org_id = $org_arr[0]->term_id; echo "".get_term_meta( $org_id, 'org_location', true ).""; }else{ ?> term_id; return get_term_meta( $org_id, 'org_location', true ); }else{ return get_post_meta($event_id,'mep_location_venue',true); } } function mep_get_event_location_street($event_id){ $location_sts = get_post_meta($event_id,'mep_org_address',true); if($location_sts){ $org_arr = get_the_terms( $event_id, 'mep_org' ); $org_id = $org_arr[0]->term_id; return get_term_meta( $org_id, 'org_street', true ); }else{ return get_post_meta($event_id,'mep_street',true); } } function mep_get_event_location_city($event_id){ $location_sts = get_post_meta($event_id,'mep_org_address',true); if($location_sts){ $org_arr = get_the_terms( $event_id, 'mep_org' ); $org_id = $org_arr[0]->term_id; return get_term_meta( $org_id, 'org_city', true ); }else{ return get_post_meta($event_id,'mep_city',true); } } function mep_get_event_location_state($event_id){ $location_sts = get_post_meta($event_id,'mep_org_address',true); if($location_sts){ $org_arr = get_the_terms( $event_id, 'mep_org' ); $org_id = $org_arr[0]->term_id; return get_term_meta( $org_id, 'org_state', true ); }else{ return get_post_meta($event_id,'mep_state',true); } } function mep_get_event_location_postcode($event_id){ $location_sts = get_post_meta($event_id,'mep_org_address',true); if($location_sts){ $org_arr = get_the_terms( $event_id, 'mep_org' ); $org_id = $org_arr[0]->term_id; return get_term_meta( $org_id, 'org_postcode', true ); }else{ return get_post_meta($event_id,'mep_postcode',true); } } function mep_get_event_location_country($event_id){ $location_sts = get_post_meta($event_id,'mep_org_address',true); if($location_sts){ $org_arr = get_the_terms( $event_id, 'mep_org' ); $org_id = $org_arr[0]->term_id; return get_term_meta( $org_id, 'org_country', true ); }else{ return get_post_meta($event_id,'mep_country',true); } } add_action('mep_event_location_street','mep_ev_street'); function mep_ev_street(){ global $post,$event_meta; $location_sts = get_post_meta($post->ID,'mep_org_address',true); if($location_sts){ $org_arr = get_the_terms( $post->ID, 'mep_org' ); $org_id = $org_arr[0]->term_id; echo "".get_term_meta( $org_id, 'org_street', true ).""; }else{ ?> ID,'mep_org_address',true); if($location_sts){ $org_arr = get_the_terms( $post->ID, 'mep_org' ); $org_id = $org_arr[0]->term_id; echo "".get_term_meta( $org_id, 'org_city', true ).""; }else{ ?> ID,'mep_org_address',true); if($location_sts){ $org_arr = get_the_terms( $post->ID, 'mep_org' ); $org_id = $org_arr[0]->term_id; echo "".get_term_meta( $org_id, 'org_state', true ).""; }else{ ?> ID,'mep_org_address',true); if($location_sts){ $org_arr = get_the_terms( $post->ID, 'mep_org' ); $org_id = $org_arr[0]->term_id; echo "".get_term_meta( $org_id, 'org_postcode', true ).""; }else{ ?> ID,'mep_org_address',true); if($location_sts){ $org_arr = get_the_terms( $post->ID, 'mep_org' ); $org_id = $org_arr[0]->term_id; echo "".get_term_meta( $org_id, 'org_country', true ).""; }else{ ?>