How do I use “new WP_Query()” within a plugin?
-
I’m wanting to start a new loop within a plugin (to be brief) and I’ve tried using
$new_query = new WP_Query
but I find that the result array I am getting is empty of values (I’ve checked it with print_r() and found that only the keys are there).Is what I am wanting to do possible? And if so am I missing a global variable of some sort?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How do I use “new WP_Query()” within a plugin?’ is closed to new replies.