WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I created a picture for each post. It takes inputs at the post creat/edit step, then, calculates in a Class and generates the picture. The inputs are saved into the post meta. Now I need to display the picture after publish the post.

From the editing page, I can see the Class works perfectly and generates the right picture. I think, when displaying the post, the first step is to require the inputs that saved in post meta, but each post has a picture, how the class work through them. So, my guess is to make a loop?

share|improve this question

You don't need separate loop to access post meta. You can use get_the_ID() in main loop to retrieve ID of current post and then use it in get_post_meta() to retrieve your data.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.