WP_Query() not working as expected
Ah, nevermind. Found it. I’m using another plugin (EDD Hide Download) which hides certain downloads and does that by hooking into the pre_get_posts action, which is triggered in WP_Query. The download in question was marked as hidden, that’s why WP_Query didn’t return it. To resolve this, I did the following. I added an action which … Read more