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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.