First, let me say that I am a PHP newbie, I am more of a RoR programmer so I am a bit lost in PHP syntax which may explain the simplicity of my question...
Goal: I want to have a form where people can enter the price of the item they want to sell.
How: I used a custom field, gave it a 'new' name of 'price'. I used the form and when I look at the post content, the value is displayed in the custom field section of the post edit page. Then, in my single_post page, I use the following code to display the content of the custom field and it does not work:
<?php get_post_meta($post->ID, 'price', true); ?>
nothing is output and if I do this:
<?php get_post_meta(the_ID(), 'price', true); ?>
it only display the id of the post.
What am I missing? I am sure I am missing something simple since all the method calls seem good.
Thx.