I think you’re using wrong keys for meta_query
array, also it expects nested arrays, even if you only have one query. Code below should help.
$args = array(
'meta_query' => array(
array(
'key' => 'is_url',
'value' => 'yes',
'compare' => 'NOT LIKE'
)
),
);
Related Posts:
- Display products from specific category in shop page
- Exclude post on loop by multiple meta key value
- How to query ‘posts_per_page’ to display a different blog posts index template?
- Query sticky posts with thumbnails
- WP_Query on custom field and order results
- Any number in meta key (wp query)
- Array as ‘key’ in WP_Query
- How to provide meta_key array to wp_query?
- Wp_query with 2 meta keys and array of meta values
- Meta query compare for ID’s greater than specific ID
- Use have_posts() with array of post results retrieved by $wpdb->get_results
- show most viewed post
- Meta Query if Values Don’t Exist
- Custom loop – Isolating post meta output depending on current query taxonomy terms
- Meta_query compare operator explanation
- Can I force WP_Query to return no results?
- meta_query ‘compare’ => ‘IN’ not working
- Multiple WP_Query loops with Pagination
- Sorting: custom query with orderby meta_value_num THEN by title
- WP_Query and next_posts_link
- WP_Query with checkbox meta_query
- Too slow when using both ‘tax_query’ and ‘meta_query’ both in WP_Query
- Get array of posts from the current archive page loop
- How can I save an array from a random post sequence for later use?
- Meta Query with date and time on the same Day before given time
- In loop: posts have thumbnail AND other variables
- How to grab metabox value in wp_query meta_query key
- How to order category.php loop by ‘meta_value’?
- Add inline HTML to posts published within last 24hrs
- Move posts to top of WP_Query if in certain Taxonomy?
- How can I create a WP_Query that returns posts where one meta_value
- Display different number of posts from one category on the different pages
- Pagination not working Search posts
- How to count data records in wordpress which have same meta_value in wp_postmeta table?
- Can certain (site-crashing) limitations on WP_Query in shortcode be overcome?
- Implementing an OR statement to wordpress wp_query
- Get List of all the Authors
- WP_Query loop within WP_Query loop
- Refine search results using WP_Query
- How to pass many ids in post__in?
- How to show subcategories using loop?
- Sub-loop / nested loops Best Practices
- Add condition of user capability in WP_query
- How to make Meta Query case sensitive?
- Show Sticky Post at the top but do not show again in the loop?
- How do I run through a WordPress loop called from a filter function?
- How do I get the title of a category in a custom loop?
- Is it a good idea to improve meta query performance by adding tax query?
- Modify wp-query and sort by post meta key
- Out Of memory issue on post per page parameter
- Orderby listing issue
- Check if loop has any categories?
- WordPress query with items from more than one selfdefined taxonomy as `term` argument
- Get all fields inlcuding “ACF” (Advanced Custom Fields) columns in wp_query
- Make meta query treat meta_value as 1 or 0
- Change query from cat id to slug or name?
- Using Wp_Query without the loop?
- Custom WP_Query id
- Assign custom parameter to each post in query
- WP Query Meta Value – How To Identify Specific, Unique Values?
- Order by meta_key doesn’t work
- How does WP generate the default $query in WP_Query based on the URL?
- how to get category`s slug in WP_Query loop?
- Multiple meta_key ordering with pre_get_posts
- How to remove only the latest sticky post from the loop
- How I can repeat 2 HTML templates in a WordPress Query?
- Meta query with compare by more than 2 fields
- Offset WP_Query by negative 1
- WP_Query orderby random do not repeat infinite scroll – one loop
- Advise on Templates for Custom Queries
- WP_Query meta compare must include ALL array values
- meta_query returning excluded result
- Query WP Page for Buddypress Group Home [closed]
- $post in wp_query?
- How to make the ‘request’ filter work?
- meta_query – check for multiple meta values in key which holds an array of values
- How do I stop the same post showing multiple times in a archive?
- Searching for a specific month in a metadata saved as Timestamp (Wp_Query)
- how to get custom attachment url?
- 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]
- Sorting with meta_query and multiple, optional meta keys
- WP_Query & Duplicate entries
- Query by meta value (add a dropdown of all values)
- Calling a function with WP_Query only ever brings the first result
- query_posts() doesn’t seem to be called in my page
- WP_Query returns empty if meta_query has more than 7 values
- WordPress meta_query not working
- Create multiple sections for all categories and then queries all the posts for each of those categories
- Using orderby with 2 meta keys
- Next / previous posts link doesn’t show up with Posts 2 Posts
- Passing conditional arrays to WP_Query() [closed]
- Carousel Loop only duplicating
- How to show featured post first, then separate loop for other posts
- Get all user with both meta_value
- Using ‘meta_query’ with the ‘pre_get_posts()’ hook disables searching for post titles
- Woocommerce set loop_shop_columns to be 3 in the main shop page loop only and 4 otherwise
- Get posts using multiple values from ACF checkbox as meta query wordpress
- WP Query returning all posts when Meta_query is null