Hi @jarekjanuszewski
Thanks for using our plugin.
The problem you said is generated by WordPress Gutenberg because some parameters for custom post type are not compatible yet;
However, you can fix that by the following way:
In your function.php file (of your theme), add the following code to make the custom post type appear :
/**
* Add REST API support to an already registered post type.
*/
add_filter( ‘register_post_type_args’, ‘gpl_partners_args’, 10, 2 );
function gpl_partners_args( $args, $post_type ) {
if ( ‘Partners’ === $post_type ) {
$args[‘show_in_rest’] = true;
// Optionally customize the rest_base or rest_controller_class
$args[‘rest_base’] = ‘Partners’;
$args[‘rest_controller_class’] = ‘WP_REST_Posts_Controller’;
}
return $args;
}
/**
* Add REST API support to an already registered taxonomy.
*/
add_filter( ‘register_taxonomy_args’, ‘gpl_recipes_taxonomy_args’, 10, 2 );
function gpl_recipes_taxonomy_args( $args, $taxonomy_name ) {
if ( ‘genre’ === $taxonomy_name ) {
$args[‘show_in_rest’] = true;
// Optionally customize the rest_base or rest_controller_class
$args[‘rest_base’] = ‘genres’;
$args[‘rest_controller_class’] = ‘WP_REST_Terms_Controller’;
}
return $args;
}
Also, follow the screenshot [https://prnt.sc/pulg0f];
Change the post type name, show_in_rest = true, and rest-base (for the same taxonomy)
Let me know if that works;
If you still face this issue, please open a support ticket here, our support team will contact you ASAP [ https://gutendev.com/submit-ticket/ ]
-GutenDev