I’m wanting to start a new loop within a plugin (to be brief) and I’ve tried using
$new_query = new WP_Querybut 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?
- The topic ‘How do I use “new WP_Query()” within a plugin?’ is closed to new replies.