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)
- Can wp_query return posts meta in a single request?
- order by numeric value for meta value
- Use REGEXP in WP_Query meta_query key
- Meta query with string starting like pattern
- compare meta_query in get_posts arguments
- Changing the meta_query of the main query based on custom query_vars and using pre_get_posts
- Meta Query with AND & OR?
- 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
- meta_query where value is equal to given value
- Query Custom Meta Value with Increment
- Perform query with meta_value date
- querying with custom meta field with meta_query
- Order by meta_value_num DESC and meta_value ASC on WP 4.0
- 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
- Comparing timestamps in meta query doesn’t work
- 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
- Order by meta_key in custom post type doesn’t affect the query
- meta_key and meta_value not working together
- Order posts by meta value and Date
- Order Posts by meta value AND published 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?
- Group WP_Query by meta_key date
- 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
- Display custom field meta outside loop, site wide
- 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_value_num not ordering all items
- Meta Query relation “AND” then set array accordingly
- meta_compare not comparing whole integer
- Is it possible to retrieve all posts with a certain value for metadata?
- Filter posts by comparing custom meta value against postdate
- 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
- add_query_arg to compare and display events from a certain date
- 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
- WP Query – grouping posts by same meta key, adding together values from another key
- Woocommerce Get Orders By Meta Value
- Meta query ignores multiple values of the key
- meta_query is overriding default search
- How to do WP_User_Query for Nested Array value Inside Nested Array field
- 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
- Slow wp_posts and wp_postmeta query using Advance Custom Fields
- Meta query doesn’t remove placeholder escape before query
- Order Posts By Custom Field That is an array of objects