johnbillion / extended-cpts

A library which provides extended functionality to WordPress custom post types and taxonomies.
GNU General Public License v2.0
979 stars 96 forks source link

post_author not showing up when using Gutenberg #123

Closed stuartshields closed 5 years ago

stuartshields commented 5 years ago

So I had an issue earlier today with the post_author not saving the user id, after some tracking down I found that Gutenberg is the cause. Unless I am missing something in the below code:

    register_extended_post_type(
        'gallery',
        [
            'show_in_rest' => true,
            'rest_base'      => 'gallery',
        ]
    );
stuartshields commented 5 years ago

Actually I believe this is related to Gutenberg itself and not this plugin.

johnbillion commented 5 years ago

You might need to add author to the post type support.