Support » How-To and Troubleshooting » [Resolved] Database queries from within the loop
3 years, 8 months ago
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?
Oh it’s fine don’t worry. What you’re reading about is running a “query” that would create a secondary loop while you’re already in a loop.
Ah.. Thank you! Sorry for the late response…. trying to figure out the Walker.