Multiple tax_queries: display posts titles from several custom taxonomie
Multiple tax_queries: display posts titles from several custom taxonomie
Multiple tax_queries: display posts titles from several custom taxonomie
WP_Query: Meta_Query with serialized value (or a workaround)
Custom query for tag and custom tag from 2 post type
Empty ‘terms’ in ‘tax_query’ returns an empty array
I’ve discovered a solution. I don’t know if it’s the best solution, but it does work. GROUP BY wp_posts.ID was causing my query to error out. I don’t quite understand why. In theory, my query should be returning duplicate posts without it… but it’s not. So, I’m going to push this code live as it … Read more
I’m not sure if this is a bug, but it need further investigation. I’ve run a few quick tests on the name field in a tax_query, and whenever a term name has got a special character or have more than one word, the tax_query is excluded from the SQL query TEST 1 I have use … Read more
Query breaking with ‘posts_per_page’ => -1
I can’t comment so I have to provide an answer which I don’t have a full answer. If I were you I would print_r($slug) and see what it gives you. The $slug variable is most likely not in a format that ‘terms’ can accept.
Let’s say you have 5 instances: 200, 201, 202, 203, 204 NOT IN {200, 201, 202} is equal to IN {203, 204} (all the other instances). So you don’t need your IN operator anymore because its results are already included from using the NOT IN operator. In your case, this logic works assuming an article … Read more
How to combine nested tax_query logic with other nested query logic?