Hi – great question!
So there are two aspects to this. If I can refer you to the original, unmodified version of the tickets/email.php around lines 262-269 you should see a block of code like this:
if ( ! empty( $venue ) ) {
$venue_name = $venue->post_title;
$venue_phone = get_post_meta( $venue_id, '_VenuePhone', true );
$venue_address = get_post_meta( $venue_id, '_VenueAddress', true );
$venue_city = get_post_meta( $venue_id, '_VenueCity', true );
$venue_web = get_post_meta( $venue_id, '_VenueURL', true );
$venue_email = get_post_meta( $venue_id, '_VenueEmail', true );
}
So that shows the general pattern for pulling in venue fields – and in the original template, variables for the state and zip are not defined. To add them you should add these lines within that same block:
$venue_state = get_post_meta( $venue_id, '_VenueStateProvince', true );
$venue_zip = get_post_meta( $venue_id, '_VenueZip', true );
Now you have access to that data and can use it wherever you see fit further down in the template just by echoing it out:
echo esc_html( $venue_zip );
Does that help at all?