Try using ‘NOT EXISTS’ instead of ‘NOT LIKE’ and remove the value ( it’ll be removed by WP with NOT EXISTS ):
$args = array(
'post_type' => 'post',
'posts_per_page' => 5,
'meta_query' => array(
array(
'key' => 'verified',
'compare' => 'NOT EXISTS'
)
)
);
$query = new WP_Query( $args );
http://codex.wordpress.org/Class_Reference/WP_Query#Custom_Field_Parameters
Related Posts:
- Search Posts with Custom Fields as query
- Extend product search with meta in WooCommerce
- Categorising search results based on Custom Fields
- Categories In English version showing not canonical URL, instead shows query search result
- Custom search (wp query by custom fields)
- Custom Search Query – include only custom fields and title
- How to include custom fields in wordpress search
- Extend search query to search meta keys values based on search string
- Post_count only shows the number of results per page
- Meta query with string starting like pattern
- WP Query where title begins with a specific letter
- Search multiple custom fields by using meta_query
- Order Search Results Page by meta_value If no Value Return Remaining Results
- Tracing the life of a query
- meta_query where value is equal to given value
- Get_post() with meta_key when compare is a date
- querying with custom meta field with meta_query
- Group posts by custom field
- Pagination broken when merging search results with additional WP_Query
- 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
- Multiple keyword search
- How to show only one post for each categories of taxonomy of custom post that contains a specific custom field
- wp_query with multiple custom fields
- WP Query search for attachments and their exact title
- Display link to taxonomy archive only if it has posts with certain custom field values
- Adding Custom Fields to Search
- How to find exact match for search term in WP_Query? What is the additional string added in LIKE query in WP_Query?
- Creating a custom search for a specific post type
- Custom Search Result Page displaying only 1 result.
- Including Custom Meta with posts_where query
- Querying on multiple taxonomies pulled from $_GET checkbox array not working?
- Is there any advantage of using default WordPress Search instead of creating a custom one?
- Search pages that are a child of the current page
- Include tags in WP_Query
- Search for multiple tags?
- Display custom field meta outside loop, site wide
- Custom Search Not Consistent with Results
- How to use wp_query to post count by search term > group post count by date > convert to json. (ex. result 12-21-2020 – 343)
- Orderby is working with one query but not with other
- how to make members list directory through wordpress post custom meta key.
- Query posts without meta preload
- Query with search and subscribers only output
- Query all posts if multiple meta key don’t exist
- meta_compare not comparing whole integer
- wp_query search not taking keywords with together for multiple words
- WP_Query Meta_key is text value and need to sort as numeric not working
- filter wp_query result with custom field values
- Order post type by sum of two custom fields
- Search Page Returns Nothing
- WP ForLoop to compare meta information of posts to determine what post to display
- How to avoid bypass of search bar rules?
- Hide products in uncategorized category from search results
- How do you determine if a result in a search query is a post or a page?
- wp_query show all values
- change posts_orderby of the callback wp_query?
- Retrieve select tag custom values from array and display them in current page with wp_query?
- How to use a dropdown to filter posts by custom field
- Order WP_Query results by meta key value in custom query
- add_query_arg to compare and display events from a certain date
- Ignore image urls in wp_query search
- Query multiple post types, but different order for each
- Order by the first array within a meta_query
- WordPress search WP_Query to cover multiple post types and their custom fields?
- How to prevent WP_Query from filtering on ‘s’ but keep ‘s’ for other purposes?
- How do i create a custom post query when the meta value is an array?
- How to add a “base” filter for all posts visible to visitors on the site?
- Add dynamic search to paginated WP_Query
- WP Query – grouping posts by same meta key, adding together values from another key
- Retrieve all custom field values of a specific custom field metakey as an array, inside WP_Query
- meta_query is overriding default search
- Multiple WP_Query args combinations according to post type
- Comparing Meta Field date in WPQuery using Meta_Query?
- Display the search results like the original pages
- How to use jQuery validation to set the search bar to accept only a specific input?
- Order 2 meta_queries differently in WP_Query?
- WordPress search page pagination displaying but not functional
- Order posts by title and custom field value?
- Limit default Search query to post_title
- How to create URL parameters to run custom queries?
- Order & Orderby clause not working with custom query
- List users by Year of Birth using a foreach loop to dynamically populate years and data
- How can I modify standard search query to include also ACF custom fields values?
- Meta key in wp_query bug?
- Custom WP_query and integrating into theme file
- Sorting posts by meta values: 2 different orders
- How to make the default WordPress search return borader results
- WordPress WP_Query offset parameter not working with search parameter
- Order by three custom fields (Y-m-d), then separate into yearly sections
- Loop through multiple custom fields with increasing number
- new WP_query using custom fields
- Need help setting up a search form for wordpress [duplicate]
- query post based on comparison
- Custom search: Search posts but display parent page in results
- Searching in specific custom post type
- Help with showing text when something is entered in my search bar
- Filtering product search results using tags
- Using ‘meta_query’ with the ‘pre_get_posts()’ hook disables searching for post titles
- How does Show Posts based on a keyword search work in WP_Query