{"id":759,"date":"2025-03-24T14:27:36","date_gmt":"2025-03-24T14:27:36","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/how-to-add-a-new-custom-post-type\/"},"modified":"2025-04-03T15:23:57","modified_gmt":"2025-04-03T14:23:57","slug":"how-to-add-a-new-custom-post-type","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/custom-post-types-extension\/how-to-add-a-new-custom-post-type\/","title":{"rendered":"How to Add a New Custom Post Type?"},"content":{"rendered":"\n<p>Custom Post Types extension allows you to add new CPTs to your directory.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-blockstrap-blockstrap-widget-alert d-flex align-items-center fade show alert alert-warning mb-3\" role=\"alert\"><span class=\"fas fa-exclamation-triangle me-2\"><\/span><span class=\"flex-grow-1\">You will need to install and activate the <a href=\"https:\/\/wpgeodirectory.com\/downloads\/custom-post-types\/\">Custom Post Types<\/a> extension in order to access this feature.<\/span><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Adding a New Custom Post Type<\/h2>\n\n\n\n<div class=\"wp-block-blockstrap-blockstrap-widget-container mb-3 bg-image-fixed list-group list-group-flush list-group-numbered\">\n<div class=\"wp-block-blockstrap-blockstrap-widget-container mb-0 border-0 bg-image-fixed list-group-item\">\n<p>Navigate to <strong>Settings > Post Types <\/strong>and click the <strong>Add New <\/strong>button.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-hrkQW0ywWQ.png\" alt=\"\"\/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-blockstrap-blockstrap-widget-container mb-0 border-0 bg-image-fixed list-group-item\">\n<p>On the <strong>Add New Post Type <\/strong>page, you need to specify the <strong>post type name <\/strong>and its <strong>slug, <\/strong>as well as other options as per your requirements.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-5bWoj9p4X8-1.png\" alt=\"\"\/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-blockstrap-blockstrap-widget-alert d-flex align-items-center fade show alert alert-info mb-3\" role=\"alert\"><span class=\"fas fa-info-circle me-2\"><\/span><span class=\"flex-grow-1\">Note that the <strong>post type name <\/strong>should be in lowercase letters only, and can only utilize underscores. It supports maximum 17 characters, and minimum of 2 characters.<\/span><\/div>\n\n\n\n<p>For a detailed summary of all the options available for CPTs, please see <strong><a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/custom-post-types-extension\/settings-overview-for-post-type-cpt-settings-general\/\">Settings Overview for Post Type (CPT) Settings General<\/a><\/strong><strong>.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Custom Post Types extension allows you to add new CPTs to your directory.&nbsp; Adding a New Custom Post Type For a detailed summary of all the options available for CPTs, please see Settings Overview for Post Type (CPT) Settings General.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[552,553,554],"article\/categories":[213,423],"class_list":["post-759","gd_place","type-gd_place","status-publish","hentry","gd_place_tags-adding-a-new-cpt","gd_place_tags-custom-post-types","gd_place_tags-geodirectory-extensions","gd_placecategory-extensions-features","gd_placecategory-custom-post-types-extension"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/759","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/types\/gd_place"}],"author":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/comments?post=759"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/759\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=759"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=759"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=759"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}