Support

Account

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