Support

Account

Home Forums General Issues Putting ACF fields inside other ACF fields Reply To: Putting ACF fields inside other ACF fields

  • Hi Andrew,

    Thanks so much for this! Yeah, I figured it is mostly CSS but I’m still stuck on the coding part of it too… I can’t seem to figure out how to get the fields to display correctly. I can get the output, but I can’t figure out how to get the image to be the correct size.

    
    This is my code: 
      <?php while( have_rows('grouped_fields') ): the_row(); }
            ?>
            <li><?php the_sub_field('title'); ?></li>
    		<li><?php the_sub_field('date'); ?></li>
    		<li><?php the_sub_field('time'); ?></li>
    		<li><img />" alt="" /></li>
    		<li><?php the_sub_field('location'); ?></li>
        <?php endwhile; ?>
    

    I’m not a good enough coder to know what to wrap everything in – like how can I make the image the background? I’m just trying to piece things together, but there is so much to learn / sift through 🙁

    Thank you so much for the link.