Support » Fixing WordPress » ACF – Advanced Custom Field – How to display?

  • Hi,

    I am using Advanced Custom Field and I have added some fields but when I try to show the fields which I have populated, it doesn’t want to show

    <?php the_field(‘banner_text_1’); ?>

    Why doesn’t this work?!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You may missed something.

    Explain bit more what you done.

    I am using a custom theme: here

    here’s a unordered list with alsorts in it…

    ` <ul>
    <li><h5>Price</h5> £<?php echo get_post_meta($post->ID, ‘price’, true); ?></li>
    <li><h5>Product Code</h5> <?php echo get_post_meta($post->ID, ‘product_code’, true); ?></li>
    <li><h5>Dimensions</h5> <?php echo get_post_meta($post->ID, ‘dimensions’, true); ?></li>
    <li><h5>image</h5> <?php echo get_post_meta($post->ID, ‘image’, true); ?></li>
    <li><?php echo apply_filters(‘the_content’, get_post_meta($post->ID, ‘add-to-cart’, true)); ?></li>

    </ul>`

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘ACF – Advanced Custom Field – How to display?’ is closed to new replies.