Hi, I’m having trouble getting a list of all available venues. I assume this would be a DB query, but I’m not sure where the field is or what the column name would be. If there’s a function that already exists, that’d be great.
$venues = $wpdb->get_col(“SELECT meta_value FROM $wpdb->postmeta WHERE meta_key = ‘_EventVenueID'”);
then running it through array_unique(); and running that list through tribe_get_venue(). Is this the best way to do it, or do you have a function that doesn’t require running it through a DB query?