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