Can you please check if the name of the custom post is added to “Post Type” field in our plugin’s configuration page. If not, then that should fix it. If you have already added the name, then read on.
The plugin should work with the custom posts. How did you create this custom post? Was it hand coded by you or did you use some type of a plugin?
We tested with a custom post type called “poems” (code below) and it works fine. Please respond back here if you are able to resolve.
function cptui_register_my_cpts_poem() {
/**
* Post Type: poems.
*/
$labels = [
"name" => __( "poems", "twentynineteen" ),
"singular_name" => __( "poem", "twentynineteen" ),
];
$args = [
"label" => __( "poems", "twentynineteen" ),
"labels" => $labels,
"description" => "",
"public" => true,
"publicly_queryable" => true,
"show_ui" => true,
"show_in_rest" => true,
"rest_base" => "",
"rest_controller_class" => "WP_REST_Posts_Controller",
"has_archive" => false,
"show_in_menu" => true,
"show_in_nav_menus" => true,
"delete_with_user" => false,
"exclude_from_search" => false,
"capability_type" => "post",
"map_meta_cap" => true,
"hierarchical" => false,
"rewrite" => [ "slug" => "poem", "with_front" => true ],
"query_var" => true,
"supports" => [ "title", "editor", "thumbnail" ],
];
register_post_type( "poem", $args );
}
add_action( 'init', 'cptui_register_my_cpts_poem' );
-
This reply was modified 4 years, 9 months ago by
webpushr.