I ended up having to rework how I did things. Instead of saving the locations as meta data, I created a new custom post type for locations with each location having a lat/lng and the ID of the Event saved to it. So now I have the ability to query all the locations and build an array of Event IDs from that.
Related Posts:
- Getting attachments by meta value
- WordPress altering my custom query, How to fix it?
- How to make Meta Query case sensitive?
- Fetch Record based on meta key dates
- how to make members list directory through wordpress post custom meta key.
- Large AND OR query timing out
- WP_Query meta compare must include ALL array values
- Query multiple post types, but different order for each
- How do i create a custom post query when the meta value is an array?
- Trouble with serialized metadata
- Query by meta value (add a dropdown of all values)
- order by numeric value for meta value
- Use REGEXP in WP_Query meta_query key
- What is the most efficient way of querying posts based on visits and date for current day?
- Custom WP_Query order by post_meta and (author) user_meta
- Query WooCommerce orders where meta data does not exist
- Perform query with meta_value date
- Finding all results from database within 500 miles of the given latitude and longitude [closed]
- What is an efficient way to query based on post_meta?
- WP_Query not working as expected for attachments and custom meta_query
- How can I create a WP_Query that returns posts where one meta_value
- WP Meta Query for some meta (array) values
- Display two post types ordered by two custom fields
- Querying by taxonomy vs Querying by Custom fields Speed Comparison
- How to get sum of meta_values of a meta_key in wp_query according to conditions
- meta_key and meta_value not working together
- Order posts by meta value and Date
- Meta Query for specific months
- Get meta info related to current post
- How to orderby meta_value_num with dollar ($) sign
- Pull post meta with post_query?
- exclude posts with a specific custom field and value
- Add quicklink to in the Admin posts page where I can query by a meta_key
- Performance when getting post meta for post retrieved by meta value
- Get attachment by meta_key value
- Optional Meta Query
- Overwrite YoastSEO meta-tags with another page’s [closed]
- How to orderby multiple meta fields if some fields are empty
- Meta_query with multiple keys and multiple values
- meta_query BETWEEN, but the range is stored in the custom field
- Extend product search with meta in WooCommerce
- Order by empty custom field
- meta_compare not comparing whole integer
- Is it possible to retrieve all posts with a certain value for metadata?
- WordPress query posts with multiple post_meta data
- Query post by date (stored custom field meta as yyyymmdd) and differentiate across 12 months
- How to set up hierarchical relationships without using plugins / meta query
- Display posts with specific value first in query
- Get every post with value in meta key
- Order WP_Query results by meta key value in custom query
- Is it possible to retrieve posts depending on meta_key LIKE condition? [duplicate]
- Nested array issue in meta_query
- Display post meta conditionally based on it’s value
- Comparing 2 Decimal Numbers from custom fields and displaying posts
- Why doesn’t my WP Meta Query return any results?
- Query posts by searching for a string in a meta field
- meta_query where the meta value is not the post title
- meta_query weird behaviour, static int will work, but not user data
- Order by the first array within a meta_query
- Query ACF relationship field – Comparator IN – Value array
- ACF: How to query for a given value count of an array like field? (e.g.: How many rows has a `flexible_content` field?)
- How to _GET multiple value checkbox WP_Query in Custom Toxonomy / Custom Fields
- wp query to use both author id and meta_query
- Woocommerce Get Orders By Meta Value
- Meta query ignores multiple values of the key
- meta_query is overriding default search
- show most viewed post
- Comparing Meta Field date in WPQuery using Meta_Query?
- Meta query orderby meta_value_num sorting by role first
- Why can my filter query SOME metadata but not other metadata?
- Getting posts by custom field value
- WP_Query, ACF field and array
- Strange results from WP_Query
- How to set meta_query if get_post_meta returns nested array for that key? [duplicate]
- Order by Date Custom Field
- I need query_posts() to order results first by a meta value and then by post ID
- WP Query. Ordering posts by another post types meta
- Meta query doesn’t remove placeholder escape before query
- Order Posts By Custom Field That is an array of objects
- What is the best way to reset a search on a meta_key / meta_value?
- Saving custom fields for WP_Query to retrieve
- How can I modify standard search query to include also ACF custom fields values?
- Custom WP_query and integrating into theme file
- How to show all the associated posts with specific date of data metabox?
- WP Meta Query at depth 2
- Filter posts/pages by user_role array
- WP_Query Posts by Metadata from Option Tree
- Compare meta key separation
- How to get several fields from wp_query?
- Loop through multiple custom fields with increasing number
- Return a single custom post from multiple meta queries
- Custom Search Query – include only custom fields and title
- query post based on comparison
- How to query post ids liked by the Author
- query by meta value then date and not empty meta value
- Querying meta values within an array
- Query posts by meta value and sort by another meta key
- Use meta query only 3 or more results?
- Use value from meta key array for use in WP_Query
- Extend search query to search meta keys values based on search string