In a site with ACF custom fields in various templates, we experience a strange limitation only with certain WYSIWYG fields when editing, between visual mode and text mode on the field.
The admin can select a certain part of the visual mode content in the WYSIWYG field and switch to text mode to see that same content highlighted, in most cases.
But in only certain fields, this does not work. Unfortunately it is an issue on the ones with lengthy content in them, so if the admin needs to select a sentence and work on the div code or insert some corrections via text mode, they cannot do this easily. Each time they try to select the text tab, it just scrolls back up to the top of the content and without any highlighted section she was working with. So she has to manually scroll down and hunt for the content she wanted to edit again.
I would have normally dismissed this assuming it was not a supported feature, but it works just fine in the convenient way (sort of bookmarking where you were editing within the field) on all other fields except for a few of them.
What could the cause be? Is there any known issue that prevents the switch from visual to text mode from working consistently to highlight where you were editing inside that field?
Shouldn’t this field just work?? It’s suppose to be a WordPress Visual/Text editor that just works allowing for formatting and even adding media… but it doesn’t.
Solutions seem to be some arcane code that needs to be added to functions.php which can be confusing and difficult to implement. Help!!!!
Completely Frustrated and Stuck!
I’m trying to migrate some custom WYSIWYG fields from the Custom Field Suite plugin into ACF. I’ve generated some new WYSIWYG ACF fields with the same name as the CFS fields.
All of information seems to appear in both CFS and ACF fields ok, but when I view the ACF content on the front of the site, the content is not rendered with any html, and the shortcodes don’t work.
I’ve managed to get the shortcodes to work using
echo do_shortcode($extra_product);
…but the text content is just displaying as unstyled content (no html).
If I open and resave any of the pages, then the problem is solved, but I really don’t want to go through hundreds of pages resaving them – does anyone know of a way to somehow refresh this field content, and resave multiple pages all in one go?
Any ideas much appreciated.
Many thanks
Hi,
I am using a field type “Wysiwyg Editor”. But I would like to have a textarea with Gutenberg Blocks. Is this possible with this plugin?
Thanks,
Francisco
It seems as if nearly all of my ACF fields are broken after updating to WordPress 5.5. Issues I’ve noticed so far:
Wysiwyg editor: Add media button doesn’t work. Visual and Text tabs do not work. Nothing happens when I click these buttons. I can edit text in the field, and the formatting buttons(center, bold, etc) seem to be working
Link Field: can not add a link to empty field. Can not edit field with existing link. Can not remove link from field. Nothing happens when I click these buttons.
Image field: same issues as link field
Button group field: Clicking on the buttons does nothing.
EDIT: After some more testing, it appears that this issue is coming from the SEO Ultimate Plus plugin that I’m using on my sites. When I disable this plugin, everything works as normal. I’m assuming the SEO plugin is preventing the ACF scripts from running.
I upgraded to Wp 5.5.0 and now i see there is a depricated function in ACF PRO
plugins/advanced-custom-fields-pro/includes/fields/class-acf-field-wysiwyg.php
#87
if( function_exists(‘wp_make_content_images_responsive’) ) {
add_filter( ‘acf_the_content’, ‘wp_make_content_images_responsive’ );
}
I now get the notification
Deprecated: wp_make_content_images_responsive is verouderd sinds versie 5.5.0. Gebruik in plaats daarvan wp_filter_content_tags().
when is there a fix?
Hi, I’m integrating a form of $_POST method with ajax filtering, to filter through repeater filed in all posts. so i’m not filtering posts (always all posts are displayed), just filtering inside each post.
the repeater field contain two sub fields – multiselect and Wysiwyg Editor.
Now, according to what the user selected in the front-end form, if it’s equal to a post multiselect values, it should display the Wysiwyg Editor field of the matching multiselect.
I have this working without multiselect. but with the multiselect, i can’t get a conditional to be ALL selected filters values, to be the exact match of ALL multiselect values.
So the result i get, as it is in a foreach loop, is multiple Wysiwyg Editor fields.
I tried a lot of things, this is an example code of one of them:
(‘cond_options’ – multiselect
‘description’ – Wysiwyg Editor’
‘ weather/sky/night’ – filters values)
if ( have_rows('cond-repeater') ):
while (have_rows('cond-repeater') ) : the_row();
$select_options = get_sub_field('cond_options');
$selectdesc = get_sub_field('description');
if( $select_options ):
foreach( $select_options as $select ):
if( isset( $_POST['weather'] ) && $_POST['weather'] && isset( $_POST['sky'] ) && $_POST['sky'] && isset( $_POST['night'] ) && $_POST['night'] == $select ){
echo $selectdesc;
}
echo $select; //just to see the output of selected options
endforeach;
endif;
endwhile;
endif;