Home Forums Add-ons Repeater Field Single-Page WordPress Theme


Single-Page WordPress Theme

    • danny

    • September 16, 2013 at 1:09 pm

    I have followed the exiting tutorial about how to use the repeater field and the tutorial was great!

    When I add this code into my index page it wont show up, only if the query string equals the page id. I’m not a PHP coder in anyway. So it would save me some tears if someone could help me out.

    Exiting Code

    <?php if (get_field('staff_members')): ?>
      <div class="staff-members">
    <?php while (has_sub_field ('staff_members')): ?>
          <div class="col-md-4">
            <img class="img-circle" src="<?php $image = get_sub_field('image'); echo $image['url']; ?>">
            <h3><?php the_sub_field('name'); ?> </h3>
            <h4><?php the_sub_field('quote'); ?></h4>
            <p><?php the_sub_field('desc'); ?></p>
          <?php endwhile; ?>
    <?php endif; ?> 

    Best Regards,

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.