I have a WYSIWYG field in a repeater set to show the Add Media button, but it isn’t showing up. They’re showing everywhere else on my site, but not in one particular field. I tried turning it ‘off and on again’ and it didn’t help.
I noticed that when I go to the export the field in question looks like this:
‘key’ => ‘field_578d1805c1b32’,
‘label’ => ‘Content’,
‘name’ => ‘content’,
‘type’ => ‘wysiwyg’,
‘instructions’ => ”,
‘required’ => ”,
‘conditional_logic’ => ”,
‘wrapper’ => array (
‘width’ => ”,
‘class’ => ”,
‘id’ => ”,
‘default_value’ => ”,
‘tabs’ => ‘all’,
‘toolbar’ => ‘full’,
‘media_upload’ => ”,
short of switching to hardcoded fields or editing the database by hand, is there a way to fix this?
Could you please share the JSON or XML export file of your field group? Also, could you please check if you are using the Local JSON feature? If you use it, could you please backup the files in the “acf-json” folder and then delete the folder?
Could you please check if there’s a conflict on your site? Could you please try to reproduce the issue on one of the WordPress’ stock themes (like Twenty Sixteen) with other plugins deactivated? If it disappears, then you can activate the theme and plugins one by one to see which one causes the issue.
If the issue persists, could you please share the JSON export file of your field group?
You should be able to export the JSON file from “Custom Fields > Tools”.
Also, it seems your WYSIWYG field somehow has the Show Media Upload Buttons? set to empty, which makes ACF thinks that it’s set to false.
To fix it, could you please expand/open all WYSIWYG fields in your flexible content field on the field group editor page and then resave it. You don’t need to change anything, though.
Hope this helps 🙂
You must be logged in to reply to this topic.
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!
© 2022 Advanced Custom Fields.