CPT UI custom category not showing up
-
I have some problems on custom category; first problem is that I have 404 error when i access the category post. I have tried to fix with flush and permalinks, whitout success.
The second problem is when i enter in the category tab in admin area i cannot see the title of the categories. The admin link are ok (/wp-admin/edit-tags.php?taxonomy=clientes&post_type=clientes).I will post some screenshots.
And the code from functions.php is this:add_action( ‘init’, ‘cptui_register_my_cpts_clientes’ );
function cptui_register_my_cpts_clientes() {
$labels = array(
“name” => “Clientes”,
“singular_name” => “Clientes”,
);$args = array(
“labels” => $labels,
“description” => “”,
“public” => true,
“show_ui” => true,
“show_in_rest” => false,
“has_archive” => true,
“show_in_menu” => true,
“exclude_from_search” => false,
“capability_type” => “page”,
“map_meta_cap” => true,
“hierarchical” => false,
“rewrite” => array( “slug” => “clientes”, “with_front” => true ),
“query_var” => true,
“param” => “page_template”,“supports” => array( “title”, “editor”, “trackbacks”, “custom-fields”, “revisions”, “thumbnail” ),
“taxonomies” => array( “category”, “post_tag” ),
);register_post_type( “clientes”, $args );
flush_rewrite_rules();
// End of cptui_register_my_cpts_clientes()
}
- The topic ‘CPT UI custom category not showing up’ is closed to new replies.