Support

Account

Home Forums Bug Reports WYSIWYG editor + Jetpack Contact Form Reply To: WYSIWYG editor + Jetpack Contact Form

  • Hey Elliot,
    strangely this is not working for me.
    I’m using the WYSIWYG editor within the Flexible Content field and trying to display a Jetpack Contact Form with no success.

    I tried 2 versions of your suggestion for testing and none of them worked.

    First attempt:

    if( have_rows('flexible_content') ):
        while ( have_rows('flexible_content') ) : the_row();
            if( get_row_layout() == 'full_column' ):
    	        $fullWidth = get_sub_field('full_width');
    	        echo apply_filters('the_content', $fullWidth);
            endif;
        endwhile;
    endif;

    Second attempt:

    <?php if( have_rows('flexible_content') ):
        while ( have_rows('flexible_content') ) : the_row();
            if( get_row_layout() == 'two_columns' ):
            	$half1 = get_sub_field('half_1');
            	$half2 = get_sub_field('half_2'); ?>
            	<div class="block group">
    			<div class="col1-2"><?php echo $half1 ? apply_filters('the_content', $half1) : '&nbsp;'; ?></div>
    			<div class="col1-2 last"><?php echo $half2 ? apply_filters('the_content', $half2) : '&nbsp;'; ?></div>
    		</div>
            <?php endif;
        endwhile;
    endif; ?>

    If you can take glance:
    http://texeurop.prompt-dev.com/contact/

    Versions running:
    WP 4.1
    ACF 5.1.8