WordPress.org

Ready to get started?Download WordPress

Forums

ACF - Advanced Custom Field - How to display? (4 posts)

  1. jbiddulph
    Member
    Posted 8 months ago #

    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?!

  2. Zakir Sajib
    Member
    Posted 8 months ago #

    You may missed something.

    Explain bit more what you done.

  3. jbiddulph
    Member
    Posted 8 months ago #

    I am using a custom theme: here

  4. Mark Shirley
    Member
    Posted 8 months ago #

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

Reply

You must log in to post.

About this Topic

Tags