Skip to main content
5 events
when toggle format what by license comment
Aug 13, 2014 at 10:27 answer added Badex timeline score: 2
Aug 13, 2014 at 9:54 comment added Badex ["tax_query"]=> object(WP_Tax_Query)#553 (2) { ["queries"]=> array(1) { [0]=> array(5) { ["taxonomy"]=> string(8) "post_tag" ["terms"]=> array(1) { [0]=> int(53) } ["include_children"]=> bool(true) ["field"]=> string(7) "term_id" ["operator"]=> string(6) "NOT IN" } } ["relation"]=> string(3) "AND" }
Aug 13, 2014 at 9:43 comment added Badex ["tag__not_in"]=> array(1) { [0]=> int(53) } This is in the query_vars array. I double checked the tag ID. It's definitely 53 but the post is still showing on the archive page. Any ideas?
Aug 13, 2014 at 0:12 comment added Milo you're using the built in post_tag taxonomy? tag__not_in is post type agnostic, it just creates a tax_query with the NOT IN operator. you can see it in source here. try having a look at the query in the template, var_dump( $wp_query ) and see if it's applying your tax parameters.
Aug 12, 2014 at 22:38 history asked Badex CC BY-SA 3.0