tag_slug__in
should be an array, not a string, that is why your query fails
'tag_slug__in' => ['featured'], // Requires PHP 5.4+, use array( 'featured' ) pre 5.4
Related Posts:
- Order posts by tags count?
- Query posts intersecting tags and categories
- Filter products on category AND tag
- Get posts that match defined arrays of tags
- Order posts by tags count?
- Issue attempting a wp_query_posts with tags
- Get posts that were most recently tagged
- WP_Query vs get_posts
- Make a WP Query search match exactly the search term
- What is the most efficient way of querying posts based on visits and date for current day?
- When should you use wp_reset_postdata vs wp_reset_query?
- Add and in the header while looping over custom query in page template
- How to get the posts published in last two days using WP_Query?
- Which custom query am I in and how can I access its properties & methods?
- Can not switch the queried post in pre_get_posts hook
- How to speed up wp_query, took more 5s to run against 100k posts
- How do you query wordpress posts using a math formula between multiple meta field values?
- Custom Post order for homepage
- Pagination problem after WP_Query with tag filtering
- Get image of latest post from taxonomies/categories
- Page navigation doesn’t show when query category
- How To Get Some Data From WordPress Database Using WordPress $wpdb Query?
- Undefined WP_Query::has_posts()?
- Is it possible to dynamically get queried term AND taxonomy?
- Create ONE callback for all page templates, post filter queries + paginated pages, triggering pagination via AJAX
- Pull post meta with post_query?
- How to access a query twice in different template files?
- Minimize database queries to user tables?
- Query all published post AND attachment with specific mime type
- Add quicklink to in the Admin posts page where I can query by a meta_key
- Get all products which have both product category
- unable to retrive parent page information
- Search for multiple tags?
- Cluster WooCommerce products in each Category Archive by Tags assigned to products
- How to display user order by role
- How to use the query hook/filter?
- WP Query related posts by tags
- Order by summing multiple values
- Order by empty custom field
- Check if loop has any categories?
- No results found from a $wpdb->get_results() query when trying to join more than one meta key query
- Query Page Content From Theme Options?
- Order by most used tag
- Query only the posts with a post format of “audio”
- WP Query with multiple tags by get the tags
- pre_get_posts – Trying to get property of non-object warning
- WordPress query posts with multiple post_meta data
- Filter post query to only show direct children of category
- Yoast primary category query modification
- Update query for wp_posts and wp_postmeta
- Write WP Query that selects posts that are part of the same two categories
- Unable to paginate a custom page query
- Include one page/post into query which is already returning posts
- Insert images into wordpress post with a query
- Why doesn’t my WP Meta Query return any results?
- WP_Query meta compare must include ALL array values
- Disable (or limit) queries when certain content (or data) is not needed (or showed)
- Prioritising and Ordering Posts By Category Name Using A Custom Loop
- Query pages created by deleted users
- pre_user_query vs pre_get_posts
- Doing $wpdb->get_results returns NULL, doing the same query in my DB returns correct value
- Adding nofollow to all the post links in get_posts with pre_get_posts or WP_Query
- Meta query orderby meta_value_num sorting by role first
- How to get meta key list efficiently?
- Why pagination is not working with tax_query param?
- Strange results from WP_Query
- Is there a way to control both Order By and Order query parameters from one input field
- getting posts by tags
- WP_Query & Duplicate entries
- Add to search posts query array with post IDS which will appear first
- return child post if available otherwise parent post
- Search has query that will return no results
- Query by meta value (add a dropdown of all values)
- How to show terms from another taxonomy
- My entry results are not consistently alphabetized
- Ignoring ‘a’ when sorting posts
- I cannot get tax_query in get_posts() to work with custom taxonomy
- WordPress custom query by archive title
- Ordering Posts by parent category, name ascending
- Query posts in current category but not attachment format
- WP_Query always returning the last custom post
- How to get query results for the next page
- How to query post into a complex slider
- wp_query – Modify $query to include duplicate content
- Optimising specific Query with ACF meta objects
- How to get several fields from wp_query?
- Combine privileged users array with my current query
- Horizontally paginate through sets of blog posts?
- Need help setting up a search form for wordpress [duplicate]
- Pagination not working with WP_Query (creates links but no page)
- Query custom post type by date field only working when two posts match the query
- meta_query dates from an array
- Divide WP_Query posts by date & post type
- Query Posts by date range with fixed beginning and end
- query by meta value then date and not empty meta value
- New WordPress WP Query using posts from certain categories
- Limit Tags display and ad Drop Down Menu
- A Depth Like Parameter For “get_posts”
- Search query alteration not working for meta values
- Advanced Search – Is this possible?