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

is there any chance of getting post meta data while editing post in wp-admin? For example -

$price = get_post_meta($post->ID, 'price', true);

isn't working, and it won't return post meta data, while editing post. I tried entering value and saving everything, but still it returned nothing.

share|improve this question

closed as not a real question by toscho Jul 22 '12 at 22:48

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Where do you have this code at? This is a really non-descriptive question. – Kevin Langley Jr. Nov 8 '11 at 19:06
Is this in a custom meta box? If the data is there and the meta key doesn't start with _ it will show up as a custom field. – Chris_O Nov 9 '11 at 18:31