Database queries from within the loop
-
Howdy all.
I’m working on learning wp_query, but have run into a problem.
I want to get most of the meta values for a post, regardless of their value. From what I have been reading, the suggestion is to use get_post_meta() from within the loop.
I’m kind of a hack, but I do remember it being repeated that you don’t run a query while looping through a query…. get_post_meta is a query, and the loop processes a query.
What the heck am I missing?
Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Database queries from within the loop’ is closed to new replies.