My query was wrong. Should be using ‘meta_value’ instead of ‘meta_value_num’ since my ‘sort_name’ is text based, not numeric. Big thanks to John Huebner on the ACF message board for answering this one.
Related Posts:
- Meta query with string starting like pattern
- compare meta_query in get_posts arguments
- Getting attachments by meta value
- querying with custom meta field with meta_query
- Order by meta_value_num DESC and meta_value ASC on WP 4.0
- WordPress altering my custom query, How to fix it?
- Querying by taxonomy vs Querying by Custom fields Speed Comparison
- 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 published date
- How to make Meta Query case sensitive?
- Fetch Record based on meta key dates
- 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
- how to make members list directory through wordpress post custom meta key.
- Large AND OR query timing out
- meta_value_num not ordering all items
- meta_compare not comparing whole integer
- Display posts with specific value first in query
- Get every post with value in meta key
- add_query_arg to compare and display events from a certain date
- Comparing 2 Decimal Numbers from custom fields and displaying posts
- meta_query weird behaviour, static int will work, but not user data
- Query multiple post types, but different order for each
- 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
- How do i create a custom post query when the meta value is an array?
- WP Query – grouping posts by same meta key, adding together values from another key
- meta_query is overriding default search
- Trouble with serialized metadata
- Comparing Meta Field date in WPQuery using Meta_Query?
- Getting posts by custom field value
- Query against multiple locations within single custom post type post
- WP_Query, ACF field and array
- Order by Date Custom Field
- Query by meta value (add a dropdown of all values)
- Order Posts By Custom Field That is an array of objects
- Custom WP_query and integrating into theme file
- Compare meta key separation
- query post based on comparison
- Get posts by meta value except one post [closed]
- How to get products with the same custom attribute like ean code
- WP Query Args – Title or Meta Value
- Can I query custom meta data through WP_Query
- Does tax_query really beats meta_query in all situations?
- Query WooCommerce orders where meta data does not exist
- Execute a large WP_Query with many “AND” Meta_Queries?
- Query all posts where meta value is empty
- WP_Query min and max values
- Group posts by custom field
- Finding all results from database within 500 miles of the given latitude and longitude [closed]
- getting posts and number by specific meta value in multiple meta
- How to query using a combination of custom_field values?
- Revolution Slider Orderby Two Custom Fields
- Meta-value query
- Meta query field order together with post_date order causes posts without the meta field to be unordered
- Display link to taxonomy archive only if it has posts with certain custom field values
- pre_get_posts filter meta_query without conflicting existing meta_query
- Undefined property: WP_Query::$post
- Programmatically set ‘meta_query’ for filter
- WP_Query meta_query >= date
- Extending woocommerce admin product search
- Complex Orderby Parameters: How to query with multiple orderby parameters using meta_value_num?
- WP_Query: include custom post type only with specific meta value
- Adding an array from a query string to a WP meta_query
- Query multiple meta values
- Query by multiple meta elements not seeming to work – wordpress is timing out
- How does one perform a sub query with different post types
- Query posts without meta preload
- Possible to filter custom post type with multiple meta data?
- How to filter a query by multiple meta keys and order by other meta keys
- Advanced WP_Query with meta_query, orderby?
- Issues with search after added meta_query
- WP_Query: apply an SQL function to meta fileld value
- How to search for meta_query LIKE or tax_query LIKE and grab these posts on search results?
- How to create dynamic value in WP_Query meta_query
- query post by author gender
- How do I add an item to the WP admin menu?
- Multiple meta query from array
- How can I modify my meta_query to work with prices that are stored in the database that contain dollar signs and commas?
- Custom meta_query order for Elementor based on post meta key [closed]
- display ACF repater field in archive page
- ElasticPress is (aparently) messing with my search filters
- Meta query ignores multiple values of the key
- Categories In English version showing not canonical URL, instead shows query search result
- Multiple meta_query not returning rows
- Check for not NULL not working in meta query
- Complex Meta Query
- meta_query not working with the_content()
- WP_Query with MetaQuery issue
- Custom loop – Isolating post meta output depending on current query taxonomy terms
- Post Query not working after updating to 4.1
- How do I display posts with specific value in a custom field into my loop?
- Orderby Meta Value and Query from Meta Query
- Sort posts in dashboard using custom field; also include posts where field isn’t set
- Querying meta values within an array
- Showing Counts on Comment List with Custom Query