Unfortunately, I cannot reproduce the issue using your code in the query editor (I only changed the post type - everything else is the same). Where exactly did you place the loop? Is it possible that it is merged with another query (“disable query merge”)?
The screenshot shows the loop at the top and the shortcode at the bottom.
Yes that was exactly it! When I turned disable query merge on, then problem was fixed.
But to do so, I had to close down the query editor to even be able to see the option to disable query merge (so didn’t know it was there) and then rewrite my query into the editor. Would be really great if can see that option from when you are working in the query editor.
Hi unfortunately, this is still not working. It works when there are posts to show. But when there are no posts, rather than show the no results text, it shows all the posts. When I do this query as a shortcode, I do not have this issue. Only when the query is in the editor. So two questions:
What is causing the issue
is it possible to output the function / shortcode into the query editor instead?