Turns out the answer was staring me in the face the whole time, what i did wrong was compare the posts by “DECIMAL” when it should have been “DECIMALS”. I also added a (float) to both of my variables inside ‘value’ so it looked like this:
'value' => array ((float) $searchnegone, (float) $searchplusone),
Although im not sure if that would even make a difference.
Hope this helps with anyone who is having a problem. Fell free to send me a message if you need help!
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
- 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
- Using custom field as ‘orderby’ value causing post grouping by publish date
- 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
- Add indexing to meta_value in wp_postmeta
- Custom WP_Query order by post_meta and (author) user_meta
- Filtering a WP_Query meta_query by numeric values isn’t working
- Perform query with meta_value date
- Trying to perform complex custom field query with order by set to field value
- datetime picker, timestamps and meta queries
- Sorting Posts by custom field
- Order posts by date and then by custom field
- Compare two meta-fields in a wp_query (where meta-field-A is larger than meta-field-B)
- Meta Query querrying several post types based on ACF fields is broken after update to WP 4.1
- How to get sum of meta_values of a meta_key in wp_query according to conditions
- Difference between ‘LIKE’ and ‘IN’ in meta queries
- Order WP Query posts by custom order calculated from post meta values
- how to speed up a complex wp_query?
- How to query for custom field within Gutenberg block from outside of that post? [closed]
- Meta Query for specific months
- Filtering by Post Meta Custom Fields – Performance
- Meta query with JSON value
- Get meta info related to current post
- Creating arguments from loop for WP_Query meta_query
- ACF Date Based wp_query
- exclude posts with a specific custom field and value
- Returning a list of custom post types excluding those without a specific meta_value
- Get attachment by meta_key value
- Using meta_query with multiple keys and compare values
- Mysql query and order meta value
- Get a list of posts with associated meta_value
- Is it possible to set specific posts to show first in a query?
- Order ascending is ignored in meta query?
- Query post by date (stored custom field meta as yyyymmdd) and differentiate across 12 months
- Order by meta_key doesn’t work
- Intiger meta value with ‘>=’ returns posts with lower value
- Multiple meta_key ordering with pre_get_posts
- Query using string from custom field as array value
- Sorting posts by Multiple custom fields in defined order
- How to get current page nearest parent id?
- meta_query – check for multiple meta values in key which holds an array of values
- Searching for a specific month in a metadata saved as Timestamp (Wp_Query)
- WP_Query on custom key and value
- Get posts having meta value between two numbers
- How to set meta_query if get_post_meta returns nested array for that key? [duplicate]
- WP_Query returns empty if meta_query has more than 7 values
- WP_Query with Pagination and orderby meta_value_num showing duplicates
- WordPress meta_query not working
- Using orderby with 2 meta keys
- query_posts with sorting on a custom datestamp
- Custom Post Type + Custom Meta Query Not Showing 2012 Posts
- Display all custom meta field values from the database using ACF Repeater
- Using ‘meta_query’ with the ‘pre_get_posts()’ hook disables searching for post titles
- Get posts using multiple values from ACF checkbox as meta query wordpress
- WP Query returning all posts when Meta_query is null
- Order custom post type by posts with most likes first
- Complicated `orderby` based on text in custom field
- meta_query post_date not returning results
- WP Query: orderby with one meta key, but multiple values