Home › Forums › General Issues › How to call ACF fields from my functions.php file › Reply To: How to call ACF fields from my functions.php file
difficult to say. because i don’t know/understand what you wish to split and why you do it.
also i don’t know what breaks, and why it would break.
without that info i cant say if it is possible or not. all depends on what you wish to do for what reason.
but primary yes, without `while ( have_rows(‘projects_content’) ) : the_row();
if( get_row_layout() == ‘full_width_image’ ): `
you cant use get_sub_field($caption);
of your image
you may can have the loop only one time and use part of it multiple times.
could be done with the help of own created arrays, but that is complex, and works only in certain cases
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!
ACF’s Repeater field is a versatile solution for repeating content in #WordPress.
— Advanced Custom Fields (@wp_acf) December 29, 2022
What’s your favorite use case for the Repeater field?
What’s the weirdest thing you’ve ever used it for?
Let us know!👇
© 2023 Advanced Custom Fields.
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.