[Resolved] Cant retrieve field value
I need to retrieve and process the value of an input field ( AWPCP plugin).
I looked up the field’s name in the database: ad_item_price
I put this code on my page ID6 ( with php plugin):
[ Moderator note: it’s the backtick character for code and not the single quote. Or use the code button, that works too. ]
<?php global $post; $adbudget = get_post_meta(6, 'ad_item_price', true); print($adbudget); ?>
to see whether I get the value, but no luck. What is wrong?
Thank you very much in advance for any hints!
PS I am an old hardware eng., not a php programmer…
- The topic ‘[Resolved] Cant retrieve field value’ is closed to new replies.