I ended up using
'tag_slug__in'=>array( 'vedette-accueil'),
and now it works. How this is different from
'tag' => 'vedette-accueil',
and how the later would transform the query so that the cpt was ignored, I may never know…but I would love it if someone told me.
Related Posts:
- Get posts with tag all post types
- Search Custom Post Type with all meta attached?
- Query for custom posts with a specific tag slug
- Why does querying on post_tags (which has been applied to custom post types) only return posts?
- How to get all tags of a custom post type by id
- how to display posts content on the custom css popup by clicking on each title on the sidebar?
- Use Tags to Query Associated Multiple Posts and Get The Average Of Custom Field Values
- Query Custom Post Type by Tag
- Attaching multiple custom taxonomies to one CPT?
- Meta query with boolean true/false value
- Get Posts in a Custom Post Type category
- Date query for a custom meta field
- Querying Posts by Taxonomy From Alternate Network Site
- How to query for posts (in hierarchical custom post type) that have children?
- Combine tax_query and meta_query in WP_Query
- Should unaltered default loop/query return a list of custom posts belonging to a custom taxonomy?
- WP_Query pagination using only numbers instead of /page/1 on URL
- Query for posts in 2 taxonomies
- Categories and Tags not working!
- Parent / Child formatting in a list of post of a custom post type
- How do I create an archive page for standard posts?
- Multiple post type queries (with specific arguments for each)
- Can custom taxonomies items have attached properties?
- Custom Post Type Loop within Shortcode
- Does anyone have a plugin that could automatically tag custom post types in wordpress?
- How to display Custom Post Type Post based on Tag with Shortcode Parameter?
- Combining sorted and random CPT
- How to add post_type=value when editing that post type in the WordPress admin?
- Display CPT posts based on specific taxonomy
- Show custom post type filtered by category
- Filtering WP_Query
- Display upcoming Events for next 7 Days
- Listing tags from a custom post type
- wp_update_term_count_now doesn’t work with a custom post type?
- Orderby CPT custom fields not working
- Custom post taxonomies as tax_query terms?
- Troubles with acf/save_post and WP_Query
- Query custom post type with ACF Date
- Custom post type ‘articles’ ignores posts_per_page, reserved post_type?
- WP Query with categories only shows one post and ignores the category
- WordPress request fiter order by related post’s post_title
- Order Custom Post Type by Custom Field Value
- Can I display custom post types in home.php or need page template?
- Sort posts in loop by the WooCommerce Membership of the author
- WordPress wp_query() basic question about args
- Meta data (Tags and Categories) for Custom Posts not showing.
- Pagination doesn’t function properly for archive of a custom post type set as the front page
- Custom post type, custom taxonomy, query posts only from taxonomy (children of)
- How to properly rewrite pagination rules for a CPT to avoid 404 error on /page/2
- WordPress admin display post type tags as checkbox
- $post->post_meta not pulling any post in wordpress/php
- How to get the post terms from a child taxonomy
- display posts of custom post type with custom taxonomy
- How to query for posts (hierarchical custom post type) that have children but are NOT top level?
- Create a WP_Query where if the first value of the first row is equal to the second compare other value
- Pagination for search results of custom post type [duplicate]
- WP_Query get post from a category and from another post type
- Custom Plugin – Query CPT – Display Results
- foreach loop inside the loop creating duplicates in output
- Sorting by meta_key different to search criteria?
- All blog posts are not showing up
- How to fetch posts that are stored in the different table than (default) wp_posts?
- WP_Query order custom post type with certain meta key value by post modified date
- Make Next and Previous on single-$posttype.php use the same order as archive-$posttype.php
- Custom post-type custom query – show all posts
- Tag template not returning posts [closed]
- Custom Post Type ‘Event’: Chronological list of recurring events from meta_values in array
- Pagination in custom post type archive.php not working
- WP Query: If field X is empty, show posts based on field Y
- meta query condition don’t work
- Filter posts by their related field’s custom field
- Custom post type category returns null
- How to convert Post Object Custom Field into Tags
- Custom meta fields not showing up in WP_Response Object via custom endpoint
- Query a Custom Post Type using SELECT that has ACF fields to compare dates
- Tell wordpress to show a single page instead of an archive page
- How to get post by meta value
- Wrapping an unknown amount of posts inside separate HTML Containers during WP_Query loop
- How do I get all authors posts of a custom post type outside loop
- minimize wp_query call to database
- sorting in wp query based on custom field value
- Why get_posts() returns empty array while I am trying to get posts from some specific taxonomies and work properly with others?
- WordPress loop add heading before first of type
- Only show current category post
- Custom Post Type shows pagination (w/404) or posts_per_page query, but not both
- WP_Query for CPT with filter by another WP_Query
- Is it possible to add query parameters on the archive page?
- How to query posts by meta keys AND under specific category?
- Shortcode display CPT Query only showing 1 post?
- Default taxonomy ‘post_tag’ added to CPT managing by custom role : nothing in the metabox
- Query stopped working
- WP_Query and two custom fields returns no posts
- Storing/querying custom date data
- Query Posts From Multiple Post Types
- Custom Post-type not returning the right child_of
- How do I hide single category post on my post page
- Can WordPress show posts based on a button that the user clicked 2 pages back?
- querying to custom field over ACF REST API
- WP Query + custom fields: How to query event posts from the current date backwards 6 months and organize it month by month?
- How do I get parameters from the URL?