Forums

[resolved] how to get fields to display (6 posts)

  1. 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); ?>

  2. Mark / t31os
    Moderator
    Posted 2 years ago #

    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..

  3. 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.

  4. Shane G
    Member
    Posted 2 years ago #

  5. ryans149
    Member
    Posted 2 years ago #

    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

  6. Mark / t31os
    Moderator
    Posted 2 years ago #

    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...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.