Looks like I found the solution.
I needed to use compare instead of operator in the meta_query
so
array(
'key' => 'vacancy_small_salary',
'value' => $vacancy_small_salary,
'operator' => '>=',
'type' => 'NUMERIC'
),
becomes
array(
'key' => 'vacancy_small_salary',
'value' => $vacancy_small_salary,
'compare' => '>=',
'type' => 'NUMERIC'
),
and the same for the other query
Related Posts:
- Modern Tribe Calendar wp-query with meta query not working at all
- How to display custom field on homepage
- Can an array be used as a meta_query value?
- WP Query with custom Shortcode
- Advanced Meta Query for Large Calendar Website (12k+ posts) (175k+ wp_postmeta rows)
- Custom query, checking values of multiple meta keys
- Is it possible to retrieve all posts with a certain value for metadata?
- WP_Query: getting posts where custom field exists
- How to hide posts of a specific custom category in WordPress?
- Passing an array into WP_Query as a variable
- Isn’t Returning Value While Using SELECT COUNT(*) FROM {$wpdb->prefix}
- Is it possible to order posts using multiple meta queries, i.e. show posts from first meta query, then the second?
- wp_Query with mutuplea values returns all posts
- meta_query search names when they have middle initials
- Usermeta data unserialize, extract and display in table in WordPress
- Meta query not showing result properly
- Efficient way of querying for a “fallback” post?
- Best Practice for PHP
- retrieve thumbnail from post ID of best selling product in category
- How to create a WP_Query to search the Title or Tag?
- how to display active, upcoming and past event with featured listing with pagination
- Get list of WP Updates Across Sites
- if statement on database query
- Sortable admin column for one meta key with three possible meta values
- WP_Query meta_query results date by date
- WP_Query sort using multiple numeric meta values
- Help with adding pagination to custom wp_query
- How to get to a specific position in wp_query?
- API response to be stored locally
- WP_Query loop, does not display special characters in title correctly
- Remove query string specific key value
- How to filter posts by post format “standard” from wp-json api?
- Using foreach loop breaks
- Loading the same WP_Query in two different wordpress .php templates
- How to prevent WP_Query function from returning all posts when empty?
- Get users that likes the post
- inserting a post from an extern php file but post content doesn’t show on wp site
- Create a Blog Template Page
- Exclude posts with specific metadata from search?
- Display an image if odd number of posts in grid
- Why doesn’t PhotoSmash plugin play well with wp_query?
- How to show meta value code HTML after x paragraph
- Form search query – displaying ACF “Post Object” field as results
- get_the_ID() doesnt work
- User Meta Value not echoing despite Var_Dump Showing correct string
- change the default order of posts only for specific categories
- Undefined offset: 0-wp-includes/meta.php:488 -Melding
- Order BY Most Liked And Published Between Previous Week Monday And Next Week Monday
- How can I split my query result in 2 arrays?
- array_rand not working correctly?
- WP_Query() load selected post
- How to get post category list as select in front-end?
- Order a WP_Query by meta value where the value is an array
- How do I check if there is a tag in the title
- How to extract information from a wp_query result?
- Using multiple variables to assign categories to an array
- Search.php gets metadata from first post
- the_post(); prints out style text into my HTML?
- orderby meta_value_num is not working, giving default order
- How can I modify this code to make the search box include tags and meta
- Free search and custom taxonomy query not providing the same result
- How to sort WooCommerce products page by latest in-stock items first?
- WP_Query for woocommerce products with a pattern as a post_title
- WordPress Search Ajax + Isotope + InfiniteScroll
- How do I make these combination select filters work when only one dropdown is set? They work in WordPress 5.8.2 but don’t in 5.8.3
- How to call my PHP function with AJAX ? wp_query
- Ajax filter with loadmore button
- Query by pagename not Working
- Display featured image of post type category
- Delete post meta by serialized meta value
- can I extend the WP_Query class to deal with ‘duplicate’ posts created by joining to wp_posts?
- get_filtered_term_product_counts – Get product terms if any products
- Getting info about selected posts using one WP_Query
- WP_Query To Display Product Of Brand On Taxonomy Page
- How to display last whole post on the homepage
- WP_query meta_query slow with OR and DATES
- How to return count of items found in SQL query
- Get meta_query value by user meta array
- wp_query beginner
- For each 3 posts, show a different post type
- WooCommerce – Print Processing orders [closed]
- Weird Behaviour: Not all WordPress Posts appearing
- List of child pages fetch next results at link click
- Query category-specific, paginated posts and allow viewer to change sort order
- wordpress is_main_query() breaks
- allow previews outside wordpress folder (Outsourcing WP previews)
- How to get category pages to look like a certain archive page?
- Post Title Not showing up
- Advanced Taxonomy query, with 3 post types
- reorder a WP_Query, using a dropdown
- Custom query_posts() parameter
- Why does a meta_query break this WP_Query?
- How to modify this function to exclude also the post belonging to a specific category?
- Display biography post for today’s birthday person
- How do I run the following script from my articles page?
- get second ID from array
- Execute multiple PHP Snippets causes error?
- Three different queries on same page
- How to sort custom sortable column by custom table value
- /page/2/ redirect to 404