keirnicholson
Forum Replies Created
-
Before I get my client to purchase, does the paid version of your plugin work with subscriptions. I cant see anything to suggest it does or doesn’t in your documentation.
Cheers.
Forum: Plugins
In reply to: [Custom Post Type UI] CPT not showing in left panelah! that would do it!
Thanks so much for your help. I Must have copied it into that field by accident!
Forum: Plugins
In reply to: [Custom Post Type UI] CPT not showing in left panelHere you go. Thanks for your help 🙂
{“areas”:{“name”:”areas”,”label”:”Areas”,”singular_label”:”Area”,”description”:”Areas Covered by Keir Nicholson”,”public”:”true”,”publicly_queryable”:”true”,”show_ui”:”true”,”show_in_nav_menus”:”true”,”delete_with_user”:”false”,”show_in_rest”:”true”,”rest_base”:””,”rest_controller_class”:””,”rest_namespace”:””,”has_archive”:”true”,”has_archive_string”:”Areas”,”exclude_from_search”:”false”,”capability_type”:”post”,”hierarchical”:”false”,”can_export”:”true”,”rewrite”:”true”,”rewrite_slug”:””,”rewrite_withfront”:”true”,”query_var”:”true”,”query_var_slug”:””,”menu_position”:”10″,”show_in_menu”:”true”,”show_in_menu_string”:”Area”,”menu_icon”:”dashicons-location”,”register_meta_box_cb”:null,”supports”:[“title”,”editor”,”thumbnail”,”custom-fields”],”taxonomies”:[“category”],”labels”:{“menu_name”:”Areas”,”add_new”:”Add Area”,”add_new_item”:”Add New Area”,”edit_item”:”Edit Area”,”new_item”:”New Area”,”view_item”:”View Area”,”all_items”:””,”view_items”:””,”search_items”:””,”not_found”:””,”not_found_in_trash”:””,”parent_item_colon”:””,”featured_image”:””,”set_featured_image”:””,”remove_featured_image”:””,”use_featured_image”:””,”archives”:””,”insert_into_item”:””,”uploaded_to_this_item”:””,”filter_items_list”:””,”items_list_navigation”:””,”items_list”:””,”attributes”:””,”name_admin_bar”:””,”item_published”:””,”item_published_privately”:””,”item_reverted_to_draft”:””,”item_scheduled”:””,”item_updated”:””},”custom_supports”:””,”enter_title_here”:””}}
function cptui_register_my_cpts_areas() { /** * Post Type: Areas. */ $labels = [ "name" => __( "Areas", "custom-post-type-ui" ), "singular_name" => __( "Area", "custom-post-type-ui" ), "menu_name" => __( "Areas", "custom-post-type-ui" ), "add_new" => __( "Add Area", "custom-post-type-ui" ), "add_new_item" => __( "Add New Area", "custom-post-type-ui" ), "edit_item" => __( "Edit Area", "custom-post-type-ui" ), "new_item" => __( "New Area", "custom-post-type-ui" ), "view_item" => __( "View Area", "custom-post-type-ui" ), ]; $args = [ "label" => __( "Areas", "custom-post-type-ui" ), "labels" => $labels, "description" => "Areas Covered by Keir Nicholson", "public" => true, "publicly_queryable" => true, "show_ui" => true, "show_in_rest" => true, "rest_base" => "", "rest_controller_class" => "WP_REST_Posts_Controller", "rest_namespace" => "wp/v2", "has_archive" => "Areas", "show_in_menu" => "Area", "show_in_nav_menus" => true, "delete_with_user" => false, "exclude_from_search" => false, "capability_type" => "post", "map_meta_cap" => true, "hierarchical" => false, "can_export" => true, "rewrite" => [ "slug" => "areas", "with_front" => true ], "query_var" => true, "menu_position" => 10, "menu_icon" => "dashicons-location", "supports" => [ "title", "editor", "thumbnail", "custom-fields" ], "taxonomies" => [ "category" ], "show_in_graphql" => false, ]; register_post_type( "areas", $args ); } add_action( 'init', 'cptui_register_my_cpts_areas' );Forum: Plugins
In reply to: [Custom Post Type UI] CPT not showing in left panelHi Michael,
Nope, its still set as “post”