• Resolved joemastro

    (@joemastro)


    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)
  • 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.

    Thread Starter joemastro

    (@joemastro)

    Ah.. Thank you! Sorry for the late response…. trying to figure out the Walker.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Database queries from within the loop’ is closed to new replies.