
Register CPT (custom post types): posts and pages
Current registered post types
All registered post types, including WordPress core, are listed in the sidebar panel.
Registered post types5
Posts post
Post type like post.
WP Core PT{
"name": "post",
"label": "Posts",
"labels": {
"name": "Posts",
"singular_name": "Post",
"add_new": "Add",
"add_new_item": "Add Post",
"edit_item": "Edit Post",
"new_item": "New Post",
"view_item": "View Post",
"view_items": "View Posts",
"search_items": "Search Posts",
"not_found": "No posts found.",
"not_found_in_trash": "No posts found in Trash.",
"parent_item_colon": null,
"all_items": "All Posts",
"archives": "Post Archives",
"attributes": "Post Attributes",
"insert_into_item": "Insert into post",
"uploaded_to_this_item": "Uploaded to this post",
"featured_image": "Featured image",
"set_featured_image": "Set featured image",
"remove_featured_image": "Remove featured image",
"use_featured_image": "Use as featured image",
"filter_items_list": "Filter posts list",
"filter_by_date": "Filter by date",
"items_list_navigation": "Posts list navigation",
"items_list": "Posts list",
"item_published": "Post published.",
"item_published_privately": "Post published privately.",
"item_reverted_to_draft": "Post reverted to draft.",
"item_trashed": "Post trashed.",
"item_scheduled": "Post scheduled.",
"item_updated": "Post updated.",
"item_link": "Post Link",
"item_link_description": "A link to a post.",
"menu_name": "Posts",
"name_admin_bar": "Post"
},
"description": "",
"public": true,
"hierarchical": false,
"exclude_from_search": false,
"publicly_queryable": true,
"embeddable": true,
"show_ui": true,
"show_in_menu": true,
"show_in_nav_menus": true,
"show_in_admin_bar": true,
"menu_position": 5,
"menu_icon": "dashicons-admin-post",
"capability_type": "post",
"map_meta_cap": true,
"register_meta_box_cb": null,
"taxonomies": [],
"has_archive": false,
"query_var": false,
"can_export": true,
"delete_with_user": true,
"template": [],
"template_lock": false,
"_builtin": true,
"_edit_link": "post.php?post=%d",
"cap": {
"edit_post": "edit_post",
"read_post": "read_post",
"delete_post": "delete_post",
"edit_posts": "edit_posts",
"edit_others_posts": "edit_others_posts",
"delete_posts": "delete_posts",
"publish_posts": "publish_posts",
"read_private_posts": "read_private_posts",
"read": "read",
"delete_private_posts": "delete_private_posts",
"delete_published_posts": "delete_published_posts",
"delete_others_posts": "delete_others_posts",
"edit_private_posts": "edit_private_posts",
"edit_published_posts": "edit_published_posts",
"create_posts": "edit_posts"
},
"rewrite": false,
"show_in_rest": true,
"rest_base": "posts",
"rest_namespace": "wp/v2",
"rest_controller_class": "WP_REST_Posts_Controller",
"rest_controller": null,
"revisions_rest_controller_class": false,
"revisions_rest_controller": null,
"autosave_rest_controller_class": false,
"autosave_rest_controller": null,
"late_route_registration": false
} Pages page
Post type like page.
WP Core PT{
"name": "page",
"label": "Pages",
"labels": {
"name": "Pages",
"singular_name": "Page",
"add_new": "Add",
"add_new_item": "Add Page",
"edit_item": "Edit Page",
"new_item": "New Page",
"view_item": "View Page",
"view_items": "View Pages",
"search_items": "Search Pages",
"not_found": "No pages found.",
"not_found_in_trash": "No pages found in Trash.",
"parent_item_colon": "Parent Page:",
"all_items": "All Pages",
"archives": "Page Archives",
"attributes": "Page Attributes",
"insert_into_item": "Insert into page",
"uploaded_to_this_item": "Uploaded to this page",
"featured_image": "Featured image",
"set_featured_image": "Set featured image",
"remove_featured_image": "Remove featured image",
"use_featured_image": "Use as featured image",
"filter_items_list": "Filter pages list",
"filter_by_date": "Filter by date",
"items_list_navigation": "Pages list navigation",
"items_list": "Pages list",
"item_published": "Page published.",
"item_published_privately": "Page published privately.",
"item_reverted_to_draft": "Page reverted to draft.",
"item_trashed": "Page trashed.",
"item_scheduled": "Page scheduled.",
"item_updated": "Page updated.",
"item_link": "Page Link",
"item_link_description": "A link to a page.",
"menu_name": "Pages",
"name_admin_bar": "Page"
},
"description": "",
"public": true,
"hierarchical": true,
"exclude_from_search": false,
"publicly_queryable": false,
"embeddable": true,
"show_ui": true,
"show_in_menu": true,
"show_in_nav_menus": true,
"show_in_admin_bar": true,
"menu_position": 20,
"menu_icon": "dashicons-admin-page",
"capability_type": "page",
"map_meta_cap": true,
"register_meta_box_cb": null,
"taxonomies": [],
"has_archive": false,
"query_var": false,
"can_export": true,
"delete_with_user": true,
"template": [],
"template_lock": false,
"_builtin": true,
"_edit_link": "post.php?post=%d",
"cap": {
"edit_post": "edit_page",
"read_post": "read_page",
"delete_post": "delete_page",
"edit_posts": "edit_pages",
"edit_others_posts": "edit_others_pages",
"delete_posts": "delete_pages",
"publish_posts": "publish_pages",
"read_private_posts": "read_private_pages",
"read": "read",
"delete_private_posts": "delete_private_pages",
"delete_published_posts": "delete_published_pages",
"delete_others_posts": "delete_others_pages",
"edit_private_posts": "edit_private_pages",
"edit_published_posts": "edit_published_pages",
"create_posts": "edit_pages"
},
"rewrite": false,
"show_in_rest": true,
"rest_base": "pages",
"rest_namespace": "wp/v2",
"rest_controller_class": "WP_REST_Posts_Controller",
"rest_controller": null,
"revisions_rest_controller_class": false,
"revisions_rest_controller": null,
"autosave_rest_controller_class": false,
"autosave_rest_controller": null,
"late_route_registration": false
} Media attachment
Post type like post.
WP Core PT{
"name": "attachment",
"label": "Media",
"labels": {
"name": "Media",
"singular_name": "Media",
"add_new": "Add Media File",
"add_new_item": "Add Media File",
"edit_item": "Edit Media",
"new_item": "New Post",
"view_item": "View Media File",
"view_items": "View Posts",
"search_items": "Search Posts",
"not_found": "No posts found.",
"not_found_in_trash": "No posts found in Trash.",
"parent_item_colon": null,
"all_items": "Media",
"archives": "Media",
"attributes": "Attachment Attributes",
"insert_into_item": "Insert into post",
"uploaded_to_this_item": "Uploaded to this post",
"featured_image": "Featured image",
"set_featured_image": "Set featured image",
"remove_featured_image": "Remove featured image",
"use_featured_image": "Use as featured image",
"filter_items_list": "Filter posts list",
"filter_by_date": "Filter by date",
"items_list_navigation": "Posts list navigation",
"items_list": "Posts list",
"item_published": "Post published.",
"item_published_privately": "Post published privately.",
"item_reverted_to_draft": "Post reverted to draft.",
"item_trashed": "Post trashed.",
"item_scheduled": "Post scheduled.",
"item_updated": "Post updated.",
"item_link": "Post Link",
"item_link_description": "A link to a post.",
"menu_name": "Media",
"name_admin_bar": "Media",
"template_name": "Single item: Media"
},
"description": "",
"public": true,
"hierarchical": false,
"exclude_from_search": false,
"publicly_queryable": true,
"embeddable": true,
"show_ui": true,
"show_in_menu": true,
"show_in_nav_menus": false,
"show_in_admin_bar": true,
"menu_position": null,
"menu_icon": "dashicons-admin-media",
"capability_type": "post",
"map_meta_cap": true,
"register_meta_box_cb": null,
"taxonomies": [],
"has_archive": false,
"query_var": false,
"can_export": true,
"delete_with_user": true,
"template": [],
"template_lock": false,
"_builtin": true,
"_edit_link": "post.php?post=%d",
"cap": {
"edit_post": "edit_post",
"read_post": "read_post",
"delete_post": "delete_post",
"edit_posts": "edit_posts",
"edit_others_posts": "edit_others_posts",
"delete_posts": "delete_posts",
"publish_posts": "publish_posts",
"read_private_posts": "read_private_posts",
"read": "read",
"delete_private_posts": "delete_private_posts",
"delete_published_posts": "delete_published_posts",
"delete_others_posts": "delete_others_posts",
"edit_private_posts": "edit_private_posts",
"edit_published_posts": "edit_published_posts",
"create_posts": "upload_files"
},
"rewrite": false,
"show_in_rest": true,
"rest_base": "media",
"rest_namespace": "wp/v2",
"rest_controller_class": "WP_REST_Attachments_Controller",
"rest_controller": null,
"revisions_rest_controller_class": false,
"revisions_rest_controller": null,
"autosave_rest_controller_class": false,
"autosave_rest_controller": null,
"late_route_registration": false
} Docs docs
Post type like page.
Custom PT{
"name": "docs",
"label": "Docs",
"labels": {
"name": "Docs",
"singular_name": "Doc",
"add_new": "New doc",
"add_new_item": "Add new doc",
"edit_item": "Edit doc",
"new_item": "New doc",
"view_item": "View doc",
"view_items": "View docs",
"search_items": "Search docs",
"not_found": "Doc not found",
"not_found_in_trash": "No pages found in Trash.",
"parent_item_colon": "Parent doc",
"all_items": "All docs",
"archives": "Docs archives",
"attributes": "Page Attributes",
"insert_into_item": "Insert into page",
"uploaded_to_this_item": "Uploaded to this page",
"featured_image": "Featured image",
"set_featured_image": "Set featured image",
"remove_featured_image": "Remove featured image",
"use_featured_image": "Use as featured image",
"filter_items_list": "Filter pages list",
"filter_by_date": "Filter by date",
"items_list_navigation": "Pages list navigation",
"items_list": "Pages list",
"item_published": "Page published.",
"item_published_privately": "Page published privately.",
"item_reverted_to_draft": "Page reverted to draft.",
"item_trashed": "Page trashed.",
"item_scheduled": "Page scheduled.",
"item_updated": "Page updated.",
"item_link": "Page Link",
"item_link_description": "A link to a page.",
"menu_name": "Docs",
"name_admin_bar": "Doc",
"template_name": "Single item: Doc"
},
"description": "Custom post type used for documentation pages",
"public": true,
"hierarchical": true,
"exclude_from_search": false,
"publicly_queryable": true,
"embeddable": true,
"show_ui": true,
"show_in_menu": true,
"show_in_nav_menus": true,
"show_in_admin_bar": true,
"menu_position": 8,
"menu_icon": "dashicons-list-view",
"capability_type": "page",
"map_meta_cap": true,
"register_meta_box_cb": null,
"taxonomies": [],
"has_archive": true,
"query_var": "docs",
"can_export": true,
"delete_with_user": null,
"template": [],
"template_lock": false,
"_builtin": false,
"_edit_link": "post.php?post=%d",
"cap": {
"edit_post": "edit_page",
"read_post": "read_page",
"delete_post": "delete_page",
"edit_posts": "edit_pages",
"edit_others_posts": "edit_others_pages",
"delete_posts": "delete_pages",
"publish_posts": "publish_pages",
"read_private_posts": "read_private_pages",
"read": "read",
"delete_private_posts": "delete_private_pages",
"delete_published_posts": "delete_published_pages",
"delete_others_posts": "delete_others_pages",
"edit_private_posts": "edit_private_pages",
"edit_published_posts": "edit_published_pages",
"create_posts": "edit_pages"
},
"rewrite": {
"slug": "docs",
"feeds": true,
"with_front": true,
"pages": true,
"ep_mask": 1
},
"show_in_rest": true,
"rest_base": false,
"rest_namespace": "wp/v2",
"rest_controller_class": false,
"rest_controller": null,
"revisions_rest_controller_class": false,
"revisions_rest_controller": null,
"autosave_rest_controller_class": false,
"autosave_rest_controller": null,
"late_route_registration": false
} Tutorials tutorials
Post type like post.
Custom PT{
"name": "tutorials",
"label": "Tutorials",
"labels": {
"name": "Tutorials",
"singular_name": "Tutorials",
"add_new": "Add",
"add_new_item": "Add Post",
"edit_item": "Edit Post",
"new_item": "New Post",
"view_item": "View Post",
"view_items": "View Posts",
"search_items": "Search Posts",
"not_found": "No posts found.",
"not_found_in_trash": "No posts found in Trash.",
"parent_item_colon": null,
"all_items": "Tutorials",
"archives": "Tutorials",
"attributes": "Post Attributes",
"insert_into_item": "Insert into post",
"uploaded_to_this_item": "Uploaded to this post",
"featured_image": "Featured image",
"set_featured_image": "Set featured image",
"remove_featured_image": "Remove featured image",
"use_featured_image": "Use as featured image",
"filter_items_list": "Filter posts list",
"filter_by_date": "Filter by date",
"items_list_navigation": "Posts list navigation",
"items_list": "Posts list",
"item_published": "Post published.",
"item_published_privately": "Post published privately.",
"item_reverted_to_draft": "Post reverted to draft.",
"item_trashed": "Post trashed.",
"item_scheduled": "Post scheduled.",
"item_updated": "Post updated.",
"item_link": "Post Link",
"item_link_description": "A link to a post.",
"menu_name": "Tutorials",
"name_admin_bar": "Tutorials",
"template_name": "Single item: Tutorials"
},
"description": "",
"public": true,
"hierarchical": false,
"exclude_from_search": false,
"publicly_queryable": true,
"embeddable": true,
"show_ui": true,
"show_in_menu": true,
"show_in_nav_menus": true,
"show_in_admin_bar": true,
"menu_position": 9,
"menu_icon": "dashicons-format-video",
"capability_type": "post",
"map_meta_cap": true,
"register_meta_box_cb": null,
"taxonomies": [],
"has_archive": true,
"query_var": "tutorials",
"can_export": true,
"delete_with_user": null,
"template": [],
"template_lock": false,
"_builtin": false,
"_edit_link": "post.php?post=%d",
"cap": {
"edit_post": "edit_post",
"read_post": "read_post",
"delete_post": "delete_post",
"edit_posts": "edit_posts",
"edit_others_posts": "edit_others_posts",
"delete_posts": "delete_posts",
"publish_posts": "publish_posts",
"read_private_posts": "read_private_posts",
"read": "read",
"delete_private_posts": "delete_private_posts",
"delete_published_posts": "delete_published_posts",
"delete_others_posts": "delete_others_posts",
"edit_private_posts": "edit_private_posts",
"edit_published_posts": "edit_published_posts",
"create_posts": "edit_posts"
},
"rewrite": {
"slug": "tutorials",
"feeds": true,
"with_front": true,
"pages": true,
"ep_mask": 1
},
"show_in_rest": true,
"rest_base": false,
"rest_namespace": "wp/v2",
"rest_controller_class": false,
"rest_controller": null,
"revisions_rest_controller_class": false,
"revisions_rest_controller": null,
"autosave_rest_controller_class": false,
"autosave_rest_controller": null,
"late_route_registration": false
}