I want to query for posts with a certain meta value. I would use the WP_Query
but when in a loop (correct me if i am wrong.. I am learning wordpress; is it only when in loop? is the the_post()
that sets the globals?), it changes the global $post
.
Is it possible to loop without setting up the global values? I just want to fetch some stuff in the posts, i don't want to use the_content
, the_title
, etc.. just raw rows of arrays?
If I want to query WP_Query
with meta fields conditions and expect and want only post, how do I get it? Do I still need to loop?