Thanks in advance for all your help!
I want to display posts (tours) that are in a specific location (city) so in my location_taxonomy.php I have a taxonomy query in the form of:
$args = array( 'post_type' => 'tour', 'meta_key' => 'trav_tour_city', 'meta_value' => $term->term_id, //city id );
When the key stored in the tour has only one value (one city), it displays the posts. When the key has more than one value (multiple cities or id separated by commas), it doesn't.
How can I change the $args so the query would determine that the current city ($term->term_id) exists within the comma separated values stored in 'trav_tour_city'?
I have tried something in the line of:
// trying multiple cities $args = array( array( 'post_type' => 'tour', 'meta_key' => 'trav_tour_city', 'meta_query' => array( array( 'value' => $term->term_id, 'compare' => 'IN', ), ), ), );
but obviously I don't know what I'm doing... haha..