Open goran468 opened 4 years ago
is it possible to send a screenshot
Here is a screenshot from our theme on local server, the same situation in clean TwentyTwenty. It also does not depend on data entered in Guttenberg or Boxes. If it is impossible to repeat, we can create custom theme based on WordPress default.
After commenting show_in_rest the boxes work correctly. // 'show_in_rest' => true,
Thank you.
Hello.
In case if Custom Post Type uses Guttenberg editor the addable boxes do not work. It allows to create items in boxes and save them, but after refreshing the page it is impossible to edit items or remove them (but still possible to add new). The JavaScript console gives this error on expand/remove click:
uncaught exception: Object
We have tested it in several themes, including TwentyTwenty and It does not depends on theme or plugins. Here is detailed environment:
Example of options for CPT:
CPT registration:
The Guttenberg editor must be enabled for post in order to repeat the issue. In case if Elementor/WPBakery/Classic Editor are used all works correctly. If show_in_rest set to false:
'show_in_rest' => false,
Addable boxes also work correctly. So the conflict seems to be caused by the Guttenberg only.
Thank you.