{"id":19571,"date":"2014-03-18T15:01:49","date_gmt":"2014-03-18T07:01:49","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=19571"},"modified":"2025-04-04T01:43:00","modified_gmt":"2025-04-03T17:43:00","slug":"wordpress-custom-fields","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/wordpress-custom-fields\/","title":{"rendered":"How to Create WordPress Custom Fields The Easy Way"},"content":{"rendered":"<p>WordPress provides the essential fields that allow us to publish posts and pages. A few of these fields include the <strong>Content Editor, Category Options, Tags, <\/strong>and<strong> Featured Image<\/strong>.<\/p>\n<p>These fields, however, are not sufficient to accommodate certain cases. Let\u2019s say you build a Book Listing site that will show the book author, the <a href=\"https:\/\/en.wikipedia.org\/wiki\/International_Standard_Book_Number\" rel=\"nofollow\">ISBN<\/a> number, and the publisher. You will need some <strong>extra fields to input the extra information<\/strong>.<\/p>\n<p>Luckily, WordPress is now quite extensive, it gives developers the ability to <strong>create custom fields to cater to any website needs<\/strong>. These custom fields could be a general text input, a textarea, a dropdown option, a color picker, calendar, and even an image uploader. In this tutorial, we  show you how to <strong>create WordPress custom fields the easy way<\/strong>. Let\u2019s get started.<\/p>\n<div class=\"ref-block ref-block--post\" id=\"ref-post-1\">\n\t\t\t\t\t<a href=\"https:\/\/www.hongkiat.com\/blog\/wordpress-date-query\/\" class=\"ref-block__link\" title=\"Read More: Exploring WordPress Date Queries for Post Filtering\" rel=\"bookmark\"><span class=\"screen-reader-text\">Exploring WordPress Date Queries for Post Filtering<\/span><\/a>\n<div class=\"ref-block__thumbnail img-thumb img-thumb--jumbo\" data-img='{ \"src\" : \"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/wordpress-date-query.jpg\" }'>\n\t\t\t\t\t\t\t<noscript>\n<style>.no-js #ref-block-post-18500 .ref-block__thumbnail { background-image: url(\"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/wordpress-date-query.jpg\"); }<\/style>\n<\/noscript>\n\t\t\t\t\t\t<\/div>\n<div class=\"ref-block__summary\">\n<h4 class=\"ref-title\">Exploring WordPress Date Queries for Post Filtering<\/h4>\n<p class=\"ref-description\">\n\t\t\t\t\t\tWe can display posts published on specific dates with the date parameters in WP_Query. The functionality, however, is...\t\t\t\t\t\t<span>Read more<\/span><\/p>\n<\/div>\n<\/div>\n<h2>Advanced Custom Fields<\/h2>\n<p>To give you a real example, let\u2019s try building a book listing site. To create our custom fields easily, we will use a plugin called <a href=\"https:\/\/wordpress.org\/\/plugins\/advanced-custom-fields\/\" rel=\"nofollow\">Advanced Custom Fields<\/a> by Elliot Condon. With it, we <strong>won\u2019t need to touch the code too much<\/strong> for creating the custom fields. However, some code-level editing in the theme files is required to display the data that we have entered into the fields.<\/p>\n<p>Once we have installed it, it adds a new side-menu called <strong>Custom Fields<\/strong>. Go to this menu, click on the <span class=\"key\">Add New<\/span> button, and name the Fields Group. For example, \"Custom Settings\" (see shot).<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/wordpress-custom-fields\/custom-fields-group.jpg\" alt=\"\" width=\"500\" height=\"320a\"><\/figure>\n<p>Click on the <span class=\"key\">+ Add Field<\/span> to create a new custom field, and we name the field label as <strong>Author<\/strong>. Below it, set the Field Name simply as <code>book_author<\/code>, which we will use to call out or display the data of Book Author. You may also set <em>Field Instruction<\/em>, and the <em>Placeholder Text, <\/em> but those are optional.<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/wordpress-custom-fields\/custom-field-creation.jpg\" alt=\"\" width=\"500\" height=\"320a\"><\/figure>\n<p>Then, we can create a set of other fields as in Page Length, the Publisher, and Book Language like so.<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/wordpress-custom-fields\/other-custom-fields.jpg\" alt=\"\" width=\"500\" height=\"167a\"><\/figure>\n<p>Next, we need to assign the field group to display it in a particular Post Type. You can assign it with Post, Page, Page Template, Attachment, or set rules that involve several Post Types altogether. In the following example, I would like to display the fields to <strong>Book Post Type<\/strong>, which you can easily create on your own with this handy tool, <a href=\"https:\/\/generatewp.com\/\" rel=\"nofollow\">GenerateWP<\/a>.<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/wordpress-custom-fields\/post-type.jpg\" alt=\"\" width=\"500\" height=\"142a\"><\/figure>\n<p>Then we  head over to our Book Post Type editing screen, and fill it up.<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/wordpress-custom-fields\/filled.jpg\" alt=\"\" width=\"500\" height=\"209a\"><\/figure>\n<h2>Displaying the Data<\/h2>\n<p>Before proceeding, since we assigned the fields to Custom Post Type, we need to create a new file to display the content called <code>single-book.php<\/code> (have a look at this page for <a href=\"https:\/\/codex.wordpress.org\/Post_Types#Custom_Post_Type_Templates\" rel=\"nofollow\">reference<\/a>). We will also put our codes in this file.<\/p>\n<p>Once all our custom fields have been populated, we will display them in the front-end by using <code>the_field()<\/code> function followed by the field name. For example, this code below displays the data from the <strong>Author Book<\/strong> field that we\u2019ve created above.<\/p>\n<pre>\r\nthe_field('book_author')\r\n<\/pre>\n<p>It\u2019s really that easy. Furthermore, if you want to make sure that it should only be displayed when the data is present, you can wrap the code with a <a href=\"https:\/\/www.hongkiat.com\/blog\/wordpress-conditional-tags-beginners\/\">conditional statement<\/a>. For example:<\/p>\n<pre>\r\nif( !empty(the_field('book_author')) ) : \r\n\tthe_field('book_author');\r\nendif;\r\n<\/pre>\n<p>And below you will find all the codes that we put in <code>single-book.php<\/code> to display our book.<\/p>\n<pre>\r\n&lt;div class=\"entry-content\"&gt;\r\n\t\t\t\t\t\r\n&lt;?php if ( has_post_thumbnail() ) { \r\n\techo '&lt;figure class=\"book-thumbnail\"&gt;';\r\n\tthe_post_thumbnail('book-thumbnail'); } \r\n\techo '&lt;\/figure&gt;';\r\n?&gt;\r\n\r\n&lt;div class=\"book-info\"&gt;\r\n\t&lt;h4 class=\"book-title\"&gt;&lt;?php the_title() ?&gt;&lt;\/h4&gt;\r\n\t&lt;p class=\"book-description\"&gt;&lt;?php the_content() ?&gt;&lt;\/p&gt;\r\n\r\n\t&lt;h4 class=\"book-details-title\"&gt;Book Details&lt;\/h4&gt;\r\n\t&lt;div class=\"book-details\"&gt;\r\n\t\t&lt;ul&gt;\r\n\t\t\t&lt;li class=\"book-author\"&gt;&lt;span class=\"label\"&gt;Author:&lt;\/span&gt; &lt;?php the_field('book_author') ;?&gt;&lt;\/li&gt;\r\n\t\t\t&lt;li class=\"book-pub\"&gt;&lt;span class=\"label\"&gt;Publisher:&lt;\/span&gt; &lt;?php the_field('book_publisher') ;?&gt;&lt;\/li&gt;\r\n\t\t\t&lt;li class=\"book-pages\"&gt;&lt;span class=\"label\"&gt;Length:&lt;\/span&gt; &lt;?php the_field('book_pages') ;?&gt;&lt;\/li&gt;\r\n\t\t\t&lt;li class=\"book-lang\"&gt;&lt;span class=\"label\"&gt;Language:&lt;\/span&gt; &lt;?php the_field('book_language') ;?&gt;&lt;\/li&gt;\r\n\t\t\t&lt;li class=\"book-pubid\"&gt;&lt;span class=\"label\"&gt;ISBN\/ASIN:&lt;\/span&gt; &lt;?php the_field('book_isbn_asin') ;?&gt;&lt;\/li&gt;\r\n\t\t&lt;\/ul&gt;\r\n\t&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<p>With a little bit of styling with CSS, we can achieve the following neat and subtle result.<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/wordpress-custom-fields\/final.jpg\" alt=\"\" width=\"500\" height=\"463a\"><\/figure>\n<h2>Final Thought<\/h2>\n<p>In this tutorial, we\u2019ve shown you the very basic example of using Advanced Custom Fields plugin to create your own a set of new Text fields and assign them to a Custom Post Type easily.<\/p>\n<p>Apart from that, this plugin provides a number of custom fields to enhance our website including <strong><a href=\"https:\/\/www.hongkiat.com\/blog\/wysiwyg-html-editors\/\">WYSIWYG Editor<\/a>, TextArea, Dropdown, User List Options, Google Maps,<\/strong> and many more. You can explore the plugin further and see what cool things you can come up with.<\/p>","protected":false},"excerpt":{"rendered":"<p>WordPress provides the essential fields that allow us to publish posts and pages. A few of these fields include the Content Editor, Category Options, Tags, and Featured Image. These fields, however, are not sufficient to accommodate certain cases. Let\u2019s say you build a Book Listing site that will show the book author, the ISBN number,&hellip;<\/p>\n","protected":false},"author":113,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[49],"tags":[4663,3030],"topic":[4520],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Create WordPress Custom Fields The Easy Way - Hongkiat<\/title>\n<meta name=\"description\" content=\"WordPress provides the essential fields that allow us to publish posts and pages. A few of these fields include the Content Editor, Category Options,\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/wordpress-custom-fields\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create WordPress Custom Fields The Easy Way\" \/>\n<meta property=\"og:description\" content=\"WordPress provides the essential fields that allow us to publish posts and pages. A few of these fields include the Content Editor, Category Options,\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/wordpress-custom-fields\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2014-03-18T07:01:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-03T17:43:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/wordpress-custom-fields\/custom-fields-group.jpg\" \/>\n<meta name=\"author\" content=\"Thoriq Firdaus\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@tfirdaus\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Thoriq Firdaus\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-custom-fields\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-custom-fields\\\/\"},\"author\":{\"name\":\"Thoriq Firdaus\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e7948c7a175d211496331e4b6ce55807\"},\"headline\":\"How to Create WordPress Custom Fields The Easy Way\",\"datePublished\":\"2014-03-18T07:01:49+00:00\",\"dateModified\":\"2025-04-03T17:43:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-custom-fields\\\/\"},\"wordCount\":635,\"commentCount\":11,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-custom-fields\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/wordpress-custom-fields\\\/custom-fields-group.jpg\",\"keywords\":[\"ad-divi\",\"wordpress custom field\"],\"articleSection\":[\"WordPress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-custom-fields\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-custom-fields\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-custom-fields\\\/\",\"name\":\"How to Create WordPress Custom Fields The Easy Way - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-custom-fields\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-custom-fields\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/wordpress-custom-fields\\\/custom-fields-group.jpg\",\"datePublished\":\"2014-03-18T07:01:49+00:00\",\"dateModified\":\"2025-04-03T17:43:00+00:00\",\"description\":\"WordPress provides the essential fields that allow us to publish posts and pages. A few of these fields include the Content Editor, Category Options,\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-custom-fields\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-custom-fields\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-custom-fields\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/wordpress-custom-fields\\\/custom-fields-group.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/wordpress-custom-fields\\\/custom-fields-group.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-custom-fields\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Create WordPress Custom Fields The Easy Way\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e7948c7a175d211496331e4b6ce55807\",\"name\":\"Thoriq Firdaus\",\"description\":\"Thoriq is a writer for Hongkiat.com with a passion for web design and development. He is the author of Responsive Web Design by Examples, where he covered his best approaches in developing responsive websites quickly with a framework.\",\"sameAs\":[\"https:\\\/\\\/thoriq.com\",\"https:\\\/\\\/x.com\\\/tfirdaus\"],\"jobTitle\":\"Web Developer\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/thoriq\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Create WordPress Custom Fields The Easy Way - Hongkiat","description":"WordPress provides the essential fields that allow us to publish posts and pages. A few of these fields include the Content Editor, Category Options,","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hongkiat.com\/blog\/wordpress-custom-fields\/","og_locale":"en_US","og_type":"article","og_title":"How to Create WordPress Custom Fields The Easy Way","og_description":"WordPress provides the essential fields that allow us to publish posts and pages. A few of these fields include the Content Editor, Category Options,","og_url":"https:\/\/www.hongkiat.com\/blog\/wordpress-custom-fields\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2014-03-18T07:01:49+00:00","article_modified_time":"2025-04-03T17:43:00+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/wordpress-custom-fields\/custom-fields-group.jpg","type":"","width":"","height":""}],"author":"Thoriq Firdaus","twitter_card":"summary_large_image","twitter_creator":"@tfirdaus","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Thoriq Firdaus","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-custom-fields\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-custom-fields\/"},"author":{"name":"Thoriq Firdaus","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e7948c7a175d211496331e4b6ce55807"},"headline":"How to Create WordPress Custom Fields The Easy Way","datePublished":"2014-03-18T07:01:49+00:00","dateModified":"2025-04-03T17:43:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-custom-fields\/"},"wordCount":635,"commentCount":11,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-custom-fields\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/wordpress-custom-fields\/custom-fields-group.jpg","keywords":["ad-divi","wordpress custom field"],"articleSection":["WordPress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/wordpress-custom-fields\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-custom-fields\/","url":"https:\/\/www.hongkiat.com\/blog\/wordpress-custom-fields\/","name":"How to Create WordPress Custom Fields The Easy Way - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-custom-fields\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-custom-fields\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/wordpress-custom-fields\/custom-fields-group.jpg","datePublished":"2014-03-18T07:01:49+00:00","dateModified":"2025-04-03T17:43:00+00:00","description":"WordPress provides the essential fields that allow us to publish posts and pages. A few of these fields include the Content Editor, Category Options,","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-custom-fields\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/wordpress-custom-fields\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-custom-fields\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/wordpress-custom-fields\/custom-fields-group.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/wordpress-custom-fields\/custom-fields-group.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-custom-fields\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Create WordPress Custom Fields The Easy Way"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e7948c7a175d211496331e4b6ce55807","name":"Thoriq Firdaus","description":"Thoriq is a writer for Hongkiat.com with a passion for web design and development. He is the author of Responsive Web Design by Examples, where he covered his best approaches in developing responsive websites quickly with a framework.","sameAs":["https:\/\/thoriq.com","https:\/\/x.com\/tfirdaus"],"jobTitle":"Web Developer","url":"https:\/\/www.hongkiat.com\/blog\/author\/thoriq\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-55F","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/19571","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/113"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=19571"}],"version-history":[{"count":3,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/19571\/revisions"}],"predecessor-version":[{"id":73665,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/19571\/revisions\/73665"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=19571"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=19571"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=19571"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=19571"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}