{"id":1620037,"date":"2020-05-11T14:51:02","date_gmt":"2020-05-11T14:51:02","guid":{"rendered":"https:\/\/toolset.com\/?post_type=course-lesson&#038;p=1620037"},"modified":"2020-11-18T10:42:48","modified_gmt":"2020-11-18T10:42:48","slug":"creating-custom-fields","status":"publish","type":"course-lesson","link":"https:\/\/toolset.com\/fr\/course-lesson\/creating-custom-fields\/","title":{"rendered":"Creating Custom Fields"},"content":{"rendered":"\n<p>By default, posts and pages come with a set of standard fields like the title, main content, date of publishing, and featured image. Using fields, you can completely customize the editor pages to include any piece of information.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps for Adding Custom Fields to 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 custom fields <\/strong>in the row of the post type you want to add <a href=\"https:\/\/toolset.com\/glossary\/custom-fields\/\">custom fields<\/a> to.<\/li><li>Click to select the type of the custom field you want to create first.<\/li><li>In the dialog that appears, type in the name of your field. Slug is created automatically.<\/li><li>Set other options for your custom field. Different types of fields have different options.<\/li><\/ol>\n\n\n\n<p>When you&#8217;re done adding a custom field, you can click the <strong>Add New Field <\/strong>button to add more.<\/p>\n\n\n\n<p>When you&#8217;re done adding all fields you need, click the <strong>Save Field Group<\/strong> button.<\/p>\n\n\n\n<p>Your group of custom fields will now appear when creating or editing posts of the selected <a href=\"https:\/\/toolset.com\/fr\/glossary\/custom-post-type\/\">post type<\/a>.<\/p>\n\n\n\n<div class=\"tb-fields-and-text\" data-toolset-blocks-fields-and-text=\"09df93215e2515fe782ef1f39dd79be3\"><p><span>You can also make repeatable custom fields, repeatable groups of custom fields, add Address custom fields, conditionally display custom fields in the admin, and more.<\/span><\/p><\/div>\n","protected":false},"author":4341,"featured_media":1630369,"template":"","related-lesson":[8403],"class_list":["post-1620037","course-lesson","type-course-lesson","status-publish","has-post-thumbnail","hentry","related-lesson-custom-types"],"_links":{"self":[{"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/course-lesson\/1620037","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/course-lesson"}],"about":[{"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/types\/course-lesson"}],"author":[{"embeddable":true,"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/users\/4341"}],"version-history":[{"count":3,"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/course-lesson\/1620037\/revisions"}],"predecessor-version":[{"id":1714619,"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/course-lesson\/1620037\/revisions\/1714619"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/media\/1630369"}],"wp:attachment":[{"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/media?parent=1620037"}],"wp:term":[{"taxonomy":"related-lesson","embeddable":true,"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/related-lesson?post=1620037"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}