
I know I’m not the first person to ask this but I’ve been trying to resolve this on and off for a while and I can’t find a resolution so any help is appreciated. I’ve built a few sites in the past using ACF Pro for much of my theme development but after a long stint with Magento I can’t figure out what I’m doing wrong.
I have a Field Group with a Repeater Field which is populated on the page dashboard in WP. Trying to display repearter field values like this:
if( have_rows('homepage_cta') ):
// Loop through rows.
while( have_rows('homepage_cta') ) : the_row();
// Load sub field value.
the_sub_field('cta_title');
// Do something, but make sure you escape the value if outputting directly...
// End loop.
endwhile;
// No value.
else :
echo("bloop");
endif;
And I’m getting this echoed onto the page and for the life of me I’m not able to figure out why:
(function() { var request, b = document.body, c = 'className', cs = 'customize-support', rcs = new RegExp('(^|\\s+)(no-)?'+cs+'(\\s+|$)'); request = true; b[c] = b[c].replace( rcs, ' ' ); // The customizer requires postMessage and CORS (if the site is cross domain). b[c] += ( window.postMessage && request ? ' ' : ' no-' ) + cs; }());