iamchel
Member
Posted 2 years ago #
Hi, I just discovered fields but I am having some difficulties getting them to work. Im trying to just make a field to display some text for testing purposes. Im using this code for the content of the my page but all thats printing out is
ID, custom, true); ?>
<?php echo get_post_meta($post->ID, custom, true); ?>
Please post the code surrounding where you are placing the above...
If posting more then 4-5 lines of code, please ensure you use the backticks as stated in the reply box or use a pastebin as found here.
http://wordpress.pastebin.com/
It's likely a case of misplacing code, from what you've described..
iamchel
Member
Posted 2 years ago #
that is all the code I am placing since I'm just trying to figure out how it all works.
where are you using this tag? This tag should be used within the look.
Also, it is incomplete. Refer this:
http://codex.wordpress.org/Function_Reference/get_post_meta
Like i said, post the code that surrounds where you are placing it (before and after), so we can see how you are placing the code, ie. where you are putting it...