{"id":1620001,"date":"2020-05-11T14:39:55","date_gmt":"2020-05-11T14:39:55","guid":{"rendered":"https:\/\/toolset.com\/?post_type=course-lesson&#038;p=1620001"},"modified":"2022-03-24T08:17:53","modified_gmt":"2022-03-24T08:17:53","slug":"creating-a-custom-post-type","status":"publish","type":"course-lesson","link":"https:\/\/toolset.com\/de\/course-lesson\/creating-a-custom-post-type\/","title":{"rendered":"Creating a Custom Post Type"},"content":{"rendered":"\n<p>WordPress comes with&nbsp;<strong>pages<\/strong>&nbsp;and&nbsp;<strong>posts<\/strong>. For other things such as products, services, your team, testimonials and anything else, the best way is to setup&nbsp;<strong><a href=\"https:\/\/toolset.com\/de\/glossary\/custom-post-type\/\">custom post types<\/a><\/strong>. <\/p>\n\n\n\n<p>The main advantages of using custom types are:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Each custom post type gets its own editing interface in the admin, including its own fields and taxonomy.<\/li><li>It&#8217;s easier to edit content, when you separate different kinds of content into custom post types.<\/li><li>You can design different templates for different custom post types.<\/li><li>You can connect between different post types using post-relationship.<\/li><li>You can control user access for different types on both the admin and the site&#8217;s front-end.<\/li><\/ul>\n\n\n\n<p>Interested? Let&#8217;s get started!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps for Creating Custom Post Types<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>Go to the <strong>Toolset \u2192 Dashboard <\/strong>page and click the <strong>Add new post type <\/strong>button.<\/li><li>Enter the plural and singular name for your post type. Slug is created automatically.<\/li><li>Click the <strong>Save Post Type <\/strong>button.<\/li><\/ol>\n\n\n\n<p>The page will reload and you will see your post type appear in the main WordPress admin menu.<\/p>\n","protected":false},"author":4341,"featured_media":1630349,"template":"","related-lesson":[8403],"class_list":["post-1620001","course-lesson","type-course-lesson","status-publish","has-post-thumbnail","hentry","related-lesson-custom-types"],"_links":{"self":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson\/1620001","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson"}],"about":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/types\/course-lesson"}],"author":[{"embeddable":true,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/users\/4341"}],"version-history":[{"count":4,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson\/1620001\/revisions"}],"predecessor-version":[{"id":2325741,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson\/1620001\/revisions\/2325741"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/media\/1630349"}],"wp:attachment":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/media?parent=1620001"}],"wp:term":[{"taxonomy":"related-lesson","embeddable":true,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/related-lesson?post=1620001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}