{"id":8054,"date":"2019-06-17T07:16:14","date_gmt":"2019-06-17T07:16:14","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=article&#038;p=8054"},"modified":"2023-01-31T18:54:02","modified_gmt":"2023-01-31T18:54:02","slug":"jetelements-posts-widget-how-to-use-custom-fields","status":"publish","type":"article","link":"https:\/\/crocoblock.com\/knowledge-base\/jetelements\/jetelements-posts-widget-how-to-use-custom-fields\/","title":{"rendered":"How to Show Custom Meta Fields in Posts Widget"},"content":{"rendered":"\n<p>Follow the steps below to get the knowledge of using custom fields within the Posts widget from the JetElements plugin. You will be able to manage the meta boxes and posts and build the layout that suits your needs. Make sure you installed any plugin, allowing you to add meta boxes and assigning them to Post types. In our tutorial, we used the <a rel=\"noopener noreferrer\" href=\"https:\/\/crocoblock.com\/plugins\/jetengine\/\" target=\"_blank\">JetEngine<\/a> plugin.<\/p>\n\n\n\n<p class=\"style-title-numecal\"><b><span>1<\/span> Step<\/b> <strong>\u2014 Create a meta field<\/strong><\/p>\n\n\n\n<p>First of all, you have to create a new <a href=\"https:\/\/crocoblock.com\/plugins\/jetengine\/custom-fields\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"custom field (opens in a new tab)\">custom field<\/a> or meta box with fields and assign it to the Posts type you want to display on the page. If you need a hint &#8211; go through our <a href=\"https:\/\/crocoblock.com\/knowledge-base\/articles\/how-to-create-a-custom-post-type-based-on-jetengine-plugin\/\">Custom Meta Field<\/a> of <a href=\"https:\/\/crocoblock.com\/knowledge-base\/articles\/how-to-create-a-custom-meta-field-with-jetengine-custom-meta-field-types-overview\/\">Custom Meta Box<\/a> creation tutorials.<\/p>\n\n\n\n<p>Copy the meta field ID, you will need it a little further.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2019\/06\/meta-field-id.png\" alt=\"Meta field ID\" class=\"wp-image-20762\"\/><\/div>\n\n\n\n<p>Don&#8217;t forget to fill the meta field with information. You will have to open every post and do it manually.<\/p>\n\n\n\n<p class=\"style-title-numecal\"><b><span>2<\/span> Step<\/b> <strong>\u2014 Add Posts widget<\/strong><\/p>\n\n\n\n<p>Next, find the page where you would like to place the <strong>Posts <\/strong>widget and open it with Elementor. Drag the <strong>Posts<\/strong> widget to the working area.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2019\/06\/post-widget.png\" alt=\"JetElements posts widget\" class=\"wp-image-20216\"\/><\/div>\n\n\n\n<p>That\u2019s what we see in the beginning:<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2019\/06\/posts-front.png\" alt=\"Posts starting look\" class=\"wp-image-20766\"\/><\/div>\n\n\n\n<p>In the <strong>General <\/strong>section of the <strong>Content <\/strong>left-side menu tab, you can choose what custom post type items to show in the grid. We have a detailed <a href=\"https:\/\/crocoblock.com\/knowledge-base\/articles\/jetelements-posts-widget-general-content-settings-overview\/\">Posts widget settings overview<\/a>, so check it out if you need some help. <\/p>\n\n\n\n<p class=\"style-title-numecal\"><b><span>3<\/span> Step<\/b> <strong>\u2014 Define the Custom Field settings<\/strong><\/p>\n\n\n\n<p>Afterward, open the <strong>Custom Fields<\/strong> accordion block and decide where you want the metadata to be displayed: before\/after the title or the content. Enable the respective option.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2019\/06\/custom-fields-settings.png\" alt=\"Meta fields toggle enabling\" class=\"wp-image-20760\"\/><\/div>\n\n\n\n<p>In the <strong>Meta Fields Position<\/strong> dropdown choose &#8220;Before&#8221; or &#8220;After&#8221; the title or the content the metadata will be placed. Every custom meta field can be added to the posts grid separately, as an <strong>Item<\/strong>. You can add as many items as you want by clicking the &#8220;<strong>Add Item<\/strong>&#8221; button. Let&#8217;s go through the item&#8217;s settings.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2019\/06\/metafield-item.png\" alt=\"adding new meta field item\" class=\"wp-image-20764\"\/><\/div>\n\n\n\n<ul>\n<li>In the <strong>Key<\/strong> field enter the ID of the created meta field that you copied before;<\/li>\n\n\n\n<li>The <strong>Label<\/strong> field is for the meta field&#8217;s title, it will be shown over the meta field;<\/li>\n\n\n\n<li><strong>Value Format<\/strong> is a field that allows you to add the <strong>HTML<\/strong> markup to the posts grid;<\/li>\n\n\n\n<li><strong>Prepare meta value with a callback<\/strong> defines how the information from the meta field will be displayed in a grid:\n<ul>\n<li><strong>Clean <\/strong>&#8211; as a clean value. The data you type into the meta field will be displayed unchanged;<\/li>\n\n\n\n<li><strong>get_permalink<\/strong> &#8211; as a permalink;<\/li>\n\n\n\n<li><strong>get_the_title<\/strong> &#8211; as a title;<\/li>\n\n\n\n<li><strong>wp_get_attachment_url<\/strong> &#8211; the picture will be displayed as its URL;<\/li>\n\n\n\n<li><strong>wp_get_attachment_image<\/strong> &#8211; the picture will be displayed as it is;<\/li>\n\n\n\n<li><strong>Format date<\/strong> &#8211; as a date;<\/li>\n\n\n\n<li><strong>Format date (localized)<\/strong>&#8211; as a date, localized to the language of the user&#8217;s website.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2019\/06\/posts-example.png\" alt=\"Posts design example\" class=\"wp-image-20204\"\/><\/div>\n\n\n\n<p>That&#8217;s all! If you need to know more about how to work with the JetElements widget, feel free to check<a href=\"https:\/\/crocoblock.com\/knowledge-base\/article-category\/jet-elements\/\"> these<\/a> tutorials.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This step-by-step tutorial will show you how to display custom meta fields created with the help of the JetEngine plugin using custom fields within the Posts widget of JetElements.<\/p>\n","protected":false},"author":11,"featured_media":0,"template":"","format":"standard","builder-category":[],"article-category":[517],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>JetElements | How to add custom fields with Posts widget<\/title>\n<meta name=\"description\" content=\"A step-by-step tutorial providing the instruction of creating and using custom fields within the Posts widget for Elementor.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/crocoblock.com\/knowledge-base\/jetelements\/jetelements-posts-widget-how-to-use-custom-fields\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JetElements | How to add custom fields with Posts widget\" \/>\n<meta property=\"og:description\" content=\"A step-by-step tutorial providing the instruction of creating and using custom fields within the Posts widget for Elementor.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/jetelements\/jetelements-posts-widget-how-to-use-custom-fields\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-31T18:54:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2019\/06\/meta-field-id.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetelements\/jetelements-posts-widget-how-to-use-custom-fields\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/jetelements\/jetelements-posts-widget-how-to-use-custom-fields\/\",\"name\":\"JetElements | How to add custom fields with Posts widget\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2019-06-17T07:16:14+00:00\",\"dateModified\":\"2023-01-31T18:54:02+00:00\",\"description\":\"A step-by-step tutorial providing the instruction of creating and using custom fields within the Posts widget for Elementor.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetelements\/jetelements-posts-widget-how-to-use-custom-fields\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/jetelements\/jetelements-posts-widget-how-to-use-custom-fields\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetelements\/jetelements-posts-widget-how-to-use-custom-fields\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Articles\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/articles\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Show Custom Meta Fields in Posts Widget\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"name\":\"Help Center\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\",\"name\":\"Help Center\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"contentUrl\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"caption\":\"Help Center\"},\"image\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JetElements | How to add custom fields with Posts widget","description":"A step-by-step tutorial providing the instruction of creating and using custom fields within the Posts widget for Elementor.","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:\/\/crocoblock.com\/knowledge-base\/jetelements\/jetelements-posts-widget-how-to-use-custom-fields\/","og_locale":"en_US","og_type":"article","og_title":"JetElements | How to add custom fields with Posts widget","og_description":"A step-by-step tutorial providing the instruction of creating and using custom fields within the Posts widget for Elementor.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/jetelements\/jetelements-posts-widget-how-to-use-custom-fields\/","og_site_name":"Help Center","article_modified_time":"2023-01-31T18:54:02+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2019\/06\/meta-field-id.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetelements\/jetelements-posts-widget-how-to-use-custom-fields\/","url":"https:\/\/crocoblock.com\/knowledge-base\/jetelements\/jetelements-posts-widget-how-to-use-custom-fields\/","name":"JetElements | How to add custom fields with Posts widget","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2019-06-17T07:16:14+00:00","dateModified":"2023-01-31T18:54:02+00:00","description":"A step-by-step tutorial providing the instruction of creating and using custom fields within the Posts widget for Elementor.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/jetelements\/jetelements-posts-widget-how-to-use-custom-fields\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/jetelements\/jetelements-posts-widget-how-to-use-custom-fields\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetelements\/jetelements-posts-widget-how-to-use-custom-fields\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/crocoblock.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"Articles","item":"https:\/\/crocoblock.com\/knowledge-base\/articles\/"},{"@type":"ListItem","position":3,"name":"How to Show Custom Meta Fields in Posts Widget"}]},{"@type":"WebSite","@id":"https:\/\/crocoblock.com\/knowledge-base\/#website","url":"https:\/\/crocoblock.com\/knowledge-base\/","name":"Help Center","description":"","publisher":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization","name":"Help Center","url":"https:\/\/crocoblock.com\/knowledge-base\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/","url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","contentUrl":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","caption":"Help Center"},"image":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article\/8054"}],"collection":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/types\/article"}],"author":[{"embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/users\/11"}],"wp:attachment":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=8054"}],"wp:term":[{"taxonomy":"builder-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/builder-category?post=8054"},{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article-category?post=8054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}