Metabox fields not working with Classic editor.
michaelmano opened this issue · comments
- Themosis Version: 2.0.0
- WordPress Version: 5.9.1
- PHP Version: 7.4.2
Description
This is not exactly a bug and not a feature request however it's not explained in the documentation and took me a tad to figure it out.
Meta fields are not displayed if you are using the classic editor instead of Gutenberg. This would be great if its possible to use them with the classic editor.
Steps to reproduce
add the following to App\Hooks\Application.php
Filter::add('use_block_editor_for_post', '__return_false', 10);
Add your meta fields
Metabox::make('properties', 'post')
->add(Field::text('author'))
->add(Field::text('isbn'))
->add(Field::integer('publication_year'))
->set();
Whats displayed is the meta box properties without the fields.
Expected behavior
Display the fields.