Broken venue meta query
-
Hi,
I’ve been using Event Organiser for some time now and everything was working fine. I created a new venue meta data called “open” and I was using a php snippet to display the a list of all venues that were opened. Here is the working script:
<?php $venue_query = array( array( 'key' => '_open', 'value' => '1' ) ); $venues = eo_get_venues( array( 'meta_query' => $venue_query ) ); if( $venues ){ echo '<ul>'; foreach($venues as $venue): $venue_id = (int) $venue->term_id; printf('<li> <a href="%s">%s</a>', eo_get_venue_link($venue_id), esc_html($venue->name)); endforeach; echo '</ul>'; } ?>
This code was working perfectly until I’ve updated the plugin to the last available version. Now it is broken.
I tried the same script with an empty meta_query array, and it works fine so it as definitely something to do with the meta data.
Do you know what is going wrong with that query?
Thanks a lot for reading this message and maybe to answer it!
- The topic ‘Broken venue meta query’ is closed to new replies.