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) : ' '; ?></div>
<div class="col1-2 last"><?php echo $half2 ? apply_filters('the_content', $half2) : ' '; ?></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
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.