Home › Forums › Add-ons › Flexible Content Field › WYSIWYG field not displaying nextgen gallery › Reply To: WYSIWYG field not displaying nextgen gallery
hi elliot,
Good day
Also I am having problem rendering NextGen Gallery in wysiwyg editor. Please see code below.
if (get_sub_field('column')) {
$row_count = count(get_sub_field('column'));
while (has_sub_field('column')) {
$str_ret .='<div class="item-wrapper">';
$str_ret .= '<h4 class="item-title">' . get_sub_field('title') . '</h4>';
if(get_sub_field('type')=='content'){
$content = get_sub_field('content');
}else{
$p = get_sub_field('widget');
$content = $p->post_content;
}
$str_ret .= '<div class="item-content">'.$content.'</div>';
$str_ret .='</div>';
}
}
echo $str_ret;
I am trying to create a multiple column content using flexible content wysiwyg editor but all I am getting is the one image. NextGen code will be like this <img alt="" src="http://domain.com.au/nextgen-attach_to_post/preview/id--3262" />
not same old shortcode.
Hope to hear from your end.
Thanks
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.