Support » Plugin: Advanced Custom Fields » Fields not showing

  • I cannot make this work, I created custom fields but they do not display in a post. Do I have to include shortcodes? please help, thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You need to associate the field group with posts or pages using it’s “Location” Rules. It’s on the field group editing page below the fields.

    Hi
    You need to add the Custom Fields code to your template files or a custom template.

    <?php
        if(get_field('your_field_name')) {
    	 echo '<p>' . get_field('your_field_name') . '</p>';
        } else {
             echo '<p>Nothing Entered</p>';
        }?>

    I hope that helps

    Colin

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fields not showing’ is closed to new replies.