I’ve found the solution (I suppose): looks like that the right operator in this case is “NOT EXISTS”. I’ve noticed that in the db postmeta table I’ve got only the records of the “is_hidden” key with value “on”…
Related Posts:
- Comparing timestamps in meta query doesn’t work
- Display two post types ordered by two custom fields
- Custom Query: If One Post Object Field Value Is The Same As Another
- Using OR relation in meta_query to check for a value before sorting by another
- Get Posts ordered by a date custom meta field
- Using meta_query, how can i filter by a custom field and order by another one?
- meta_query for keys that aren’t yet set
- WP_Query orderby custom field then post_date in one query
- Query custom post type by custom field
- Filtering a WP_Query meta_query by numeric values isn’t working
- Querying custom post type with 2 custom fields (date-range)
- Custom Queries: Joining On Meta Values From Two Custom Post Types
- How Can I save multiple records in same meta key?
- order by meta_value serialized array
- WP insert post PHP function dynamically generated Custom Fields
- How loop through posts based on custom fields
- Having trouble with custom date field for CPT query (WordPress)
- Display custom post types with custom date field value (before today) & order by custom date field
- Sort posts based on multiple custom fields
- Conditional to modify query results
- Filtering by Post Meta Custom Fields – Performance
- Ignore sticky posts if post is not in meta query
- query posts and custom post type with meta key
- meta_query compare >= not working but
- WP_Query: include custom post type only with specific meta value
- Returning a list of custom post types excluding those without a specific meta_value
- Two near-identical custom field types – one works, the other doesn’t . What can cause this?
- wp_query check if integer exists in custom field’s array
- Filtering custom post type on a combination of custom taxonomies and custom fields?
- Meta query for custom post type ignored in main query
- Querying Two Custom Post Types with OR Not Working
- Meta Query Not Returning Output Despite Having Matching Values
- Meta Query Filtering not working on Custom Meta Box using Radio Buttons
- First custom field value (out of several) displayed twice after query
- Meta Query posts not showing on ending date of custom field
- Admin Custom Meta Box – Pull Last 5 Posts from Custom Post Type
- How to Output which matched meta_keys were found from custom_type_posts?
- Possible to filter custom post type with multiple meta data?
- filter search custom field query
- How to let users choose where to search for posts?
- Query based on custom fields start and end date
- Getting a custom post’s custom field based on another custom post’s custom field select
- How to conditionally add Custom Post Type to Front Page
- Display a post from custom post type only if all the selected taxonomies and custom field value matches the record
- Filtering custom posts by custom fields (ACF) [closed]
- order the meta query results by 2 custom fields
- WP Query from two Custom Post type fields as statement
- Unable to gather Image URL from Custom Post Type’s; Custom Meta Field
- Orderby if between two meta fields
- Show posts from WP Custom Post Type selected from a field in a metabox
- How do I query with multiple custom fields orderby in same column?
- meta query multiple values for the same key
- Sort custom post archives by a meta value from a different custom post type?
- Custom post types – meta_query: search lesson which starts sooner
- post type => ‘any’ not applied my custom queries
- Meta_Query refuses to return results
- Sort loop by custom field from different post type
- Meta_query by date for Events archive
- How do I display specific custom posts, and how do I edit a post’s singular page?
- Query events post type after current date and timezone
- Show first posts with custom field not empty and order all by title
- Conditional posts in WP_query for search
- meta query always fails even if data is correct
- Selecting posts older than the current Unix epoch timestamp
- Unable to get the upcoming events for custom post
- Filter CPT based on meta box value using Flexible Posts widget?
- WP_Query arguments: Loop through custom post type – get all entries except excluded meta_key?
- loop through custom post-type with two meta_keys
- Querying meta values within an array
- How to grab data (titles, thumbnails and custom fields) from multiple posts to populate a new array efficiently?
- Custom Post Type + Custom Meta Query Not Showing 2012 Posts
- Filter Custom post type by another Custom post type
- Check for custom field value in different post type than current one and do something
- Function to Compare CPT Post Custom Value with Default Posts CF Value
- Custom Post Types: How-to get rid of editor (-meta box)
- Possible to turn off autosave for single custom post type
- manage posts custom column is not populating data from meta boxes
- Create child page within custom post type
- Add custom field to media attachment image attribute in post editor
- set and unset the custom field value
- Inserting data into `post meta` table?
- Before Delete Post
- WP_Query that filters based on custom relationship field
- Why do I lose the content of meta boxes when I leave the page?
- Custom post type content using custom fields without template
- Plugin – Combine Meta Box Input Fields into single saveble record
- How to render a custom post type template with custom fields using shortcode
- Get Posts by multiple custom fields is not working
- Enable Custom Fields For Custom Post Type When CPT Created Using Plugin
- Display custom post type for specific user
- Function to limit number of custom post types on homepage – TwentyTen
- How to prevent meta data from being edited in a post?
- Add custom post type to query
- Ordering Post by Meta Key (Not Working)
- Error when moving custom post type to bin
- Enforce all custom posts have specific custom fields
- How would I get a list of posts from a custom post type
- Customizing the display of custom post types
- Display custom posts in checkbox list
- Order Wp Query by earliest of 3 dates meta query