Forums

Custom Field Template
Adding text from custom field into "box" on screen (2 posts)

  1. Muskrat37
    Member
    Posted 8 months ago #

    I have figured out how to create the ACF's - and have placed them in the "page" that I want the fields to show up. I have added text to the fields, and "updated" the page.

    I am stuck at getting this text to display in a specific area on the page (the php call is messing me up)

    What I have done is added 3 boxes on the bottom of my screen (in Divs with CSS styling)

    I want the text / images I place in the WYSIWYG editor of the ACF field to show up in the corresponding box. I.E. left_box, center_box, right_box.

    Can someone please tell me the code to place in my DIV tag to display the text from my ACF there?

    Thanks in advance.

    http://wordpress.org/extend/plugins/custom-field-template/

  2. Muskrat37
    Member
    Posted 8 months ago #

    It was just me - not putting the right syntax in my php call.

    For those who need to know - you have to put:

    <?php echo get_post_meta($post->ID, 'field_name', true); ?>

    I agree with those that said the documentation is not very good - but this plugin is incredible.

    Needs better documentation for "noobs"

Reply

You must log in to post.

About this Plugin

About this Topic