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
- Can I force WP_Query to return no results?
- Can wp_query return posts meta in a single request?
- 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
- compare meta_query in get_posts arguments
- How can I use order_by to order by two meta_keys without excluding posts that don’t have those keys initialized?
- Search custom taxonomy term by name
- Function in array as arguments for WP_Query
- Search multiple custom fields by using meta_query
- WP_Query to show post from a category OR custom field
- Order Search Results Page by meta_value If no Value Return Remaining Results
- Sorting posts by custom date fields (non standard date format)
- Getting attachments by meta value
- Tracing the life of a query
- meta_query where value is equal to given value
- Want to redirect if search query match exact title of any post
- Get_post() with meta_key when compare is a date
- querying with custom meta field with meta_query
- Group posts by custom field
- Order by meta_value_num DESC and meta_value ASC on WP 4.0
- Pagination not working for Custom search form & custom result template
- How to support multiple search terms query within one process?
- Search Custom Post Type with all meta attached?
- Pagination broken when merging search results with additional WP_Query
- getting posts and number by specific meta value in multiple meta
- Custom search form with empty parameters
- How to query using a combination of custom_field values?
- Sorting Posts by custom field
- Order posts by date and then by custom field
- How to search by title or tags exclusively?
- WordPress search exact match
- Pagination wont work with search results template [duplicate]
- Revolution Slider Orderby Two Custom Fields
- How do I search WordPress by different fields without a plugin?
- Multiple keyword search
- Query two post types and order by two different date fields
- WordPress altering my custom query, How to fix it?
- Using next/previous_posts_link with customised search
- Querying by taxonomy vs Querying by Custom fields Speed Comparison
- WordPress custom search form with pre_get_posts not work
- Search – Ajax – Alter Query Parameters with Pagination
- Order by meta_key in custom post type doesn’t affect the query
- Add custom search results to main WP search [duplicate]
- Multiple search queries on one page
- How to show only one post for each categories of taxonomy of custom post that contains a specific custom field
- tax_query shows no results if nothing is selected
- meta_key and meta_value not working together
- How can i make WP_Query return post image and categories?
- Custom Field sort not working (WP 3.8.1)
- wp_query with multiple custom fields
- Searching through different categories on different pages code is not working
- How add a custom posttype name using ACF field to a query post array
- Filtering posts by custom field value not working
- how to search in custom fields & custom taxonomy for custom search
- WP Query search for attachments and their exact title
- Display link to taxonomy archive only if it has posts with certain custom field values
- getting posts and number by specific meta value in multiple meta
- Ordering Posts Type A by Custom Fields of related Post Type B
- WP_Query’s “request” SQL Query
- Including only current user’s posts in search
- Order Posts by meta value AND published date
- is_search was called incorrectly
- How do I search inside specific taxonomies in WordPress
- Modifying the Search Results
- Adding Custom Fields to Search
- Custom category search box for WordPress
- Refine search results using WP_Query
- How to find exact match for search term in WP_Query? What is the additional string added in LIKE query in WP_Query?
- wp_query add arguments using array_push if variable met
- Complex date range with WP_Query and BETWEEN
- Creating a custom search for a specific post type
- Group WP_Query by meta_key date
- Custom Search Result Page displaying only 1 result.
- How do I use wp_query for WordPress search?
- Including Custom Meta with posts_where query
- How To Fix WP Query Returns Results But Shouldn’t?
- Get posts for which a custom field is not present, with get_posts
- Output an array of terms for a ‘tax_query’ => array()
- How to loop for every result found in the_content() when using the search query?
- exclude posts with a specific custom field and value
- Assigning a meta_query value based on regexp to wp_query fails
- showing all search result in one template
- 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?
- Add quicklink to in the Admin posts page where I can query by a meta_key
- WP_Query Not Recognizing Taxonomy Parameter in Custom Search
- How to make Meta Query case sensitive?
- Search pages that are a child of the current page
- Include tags in WP_Query
- Search for multiple tags?
- How to Filter Posts by Custom Fields?