{"id":17521,"date":"2019-06-19T09:04:12","date_gmt":"2019-06-18T23:04:12","guid":{"rendered":"https:\/\/getblocklab.com\/?post_type=docs&#038;p=17521"},"modified":"2024-12-10T17:01:31","modified_gmt":"2024-12-10T17:01:31","slug":"post","status":"publish","type":"page","link":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/fields\/post\/","title":{"rendered":"Post"},"content":{"rendered":"\n<p class=\"has-background\" style=\"font-size:15px;background-color:#f5f5f5\"><strong>This field type requires the Genesis Custom Blocks Pro plugin which is available through a <a href=\"https:\/\/wpengine.com\/genesis-pro\/\" target=\"_blank\" rel=\"noreferrer noopener\">Genesis Pro subscription<\/a>.<\/strong><\/p>\n\n\n\n<p>The Post field allows you to select one of your WordPress\u00ae posts from a searchable dropdown menu.<sup><a href=\"#legal-disclaimer\">1<\/a><\/sup><\/p>\n\n\n\n<figure class=\"wp-block-image size-full border\"><a href=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-content\/uploads\/sites\/5\/2021\/07\/gcb-post-field-settings-updated.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1275\" height=\"849\" src=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-content\/uploads\/sites\/5\/2021\/07\/gcb-post-field-settings-updated.png\" alt=\"Screenshot of the Post field settings\" class=\"wp-image-137353\" srcset=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-content\/uploads\/sites\/5\/2021\/07\/gcb-post-field-settings-updated.png 1275w, https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-content\/uploads\/sites\/5\/2021\/07\/gcb-post-field-settings-updated-300x200.png 300w, https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-content\/uploads\/sites\/5\/2021\/07\/gcb-post-field-settings-updated-1024x682.png 1024w, https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-content\/uploads\/sites\/5\/2021\/07\/gcb-post-field-settings-updated-768x511.png 768w, https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-content\/uploads\/sites\/5\/2021\/07\/gcb-post-field-settings-updated-600x400.png 600w\" sizes=\"auto, (max-width: 1275px) 100vw, 1275px\" \/><\/a><\/figure>\n\n\n\n<p style=\"font-size:13px\" class=\"has-text-align-center\"><em>Click image to enlarge<\/em><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Field Label:<\/strong>\u00a0The field label will be displayed next to the field when adding it the block to the post or page.<\/li>\n\n\n\n<li><strong>Field Name:<\/strong>\u00a0The field name should auto-fill based on the field label, but can be customized. This will be used in the PHP as part of the block template.<\/li>\n\n\n\n<li><strong>Field Type:<\/strong>\u00a0Choose the\u00a0<em>Posts<\/em>\u00a0field type.<\/li>\n\n\n\n<li><strong>Field Location:<\/strong>\u00a0Choose a location to display the field.\n<ul class=\"wp-block-list\">\n<li><em>Editor<\/em>\u00a0will show the field in the main editing area of a post or page.<\/li>\n\n\n\n<li><em>Inspector<\/em>\u00a0will display the field in the right-hand sidebar under the block inspector.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Field Width:<\/strong>\u00a0Select how widely the field should be displayed.<\/li>\n\n\n\n<li><strong>Help Text:<\/strong>\u00a0Enter instructions to describe the data needed in the field. (optional).<\/li>\n\n\n\n<li><strong><strong>Post Type<\/strong>: <\/strong>The post type filter (e.g. Posts, Pages, or a custom post type).<\/li>\n<\/ol>\n\n\n\n<p><strong>Note:<\/strong> For a custom post type to display in the editor, when it is registered with<code>&nbsp;register_post_type()<\/code>,&nbsp;<a target=\"_blank\" href=\"https:\/\/developer.wordpress.org\/reference\/functions\/register_post_type\/#show_in_rest\" rel=\"noreferrer noopener\">show_in_rest<\/a>&nbsp;must be&nbsp;<code>true<\/code>. This is because the block editor uses the REST API.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">PHP API Controls<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>name<\/li>\n\n\n\n<li>label<\/li>\n\n\n\n<li>control<\/li>\n\n\n\n<li>type<\/li>\n\n\n\n<li>order<\/li>\n\n\n\n<li>location<\/li>\n\n\n\n<li>width<\/li>\n\n\n\n<li>help<\/li>\n\n\n\n<li>post_type_rest_slug<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/github.com\/getblocklab\/block-lab\/wiki\/6.-Available-field-types#template-usage-13\"><\/a>Template Usage<\/h2>\n\n\n\n<p>To display the Post field in your template with a link to the post, use the field name you provided.<\/p>\n\n\n\n<p>There are two ways you can do this.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Template Editor:<\/strong>\u00a0Using the built-in\u00a0<a href=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/get-started\/create-your-first-custom-block\/#template-editor\">template editor<\/a>\u00a0is the easiest way to create the required block template. The template editor accepts HTML markup, field names (enclosed in 2 brackets), and CSS only.<\/li>\n<\/ol>\n\n\n\n<p>Here\u2019s an example of HTML you can use in the template editor:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;h2&gt;{{consider}}&lt;\/h2&gt;<\/code><\/pre>\n\n\n\n<p><strong>Note:<\/strong> <em>In the Template Editor, the Post field will render the title of the post. For anything else, like getting the post ID or permalink, please use PHP templating method described below.<\/em><\/p>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>PHP Template:<\/strong>\u00a0If you need to use logic, loop syntax, define variables, or use PHP, you can create the template manually using the\u00a0<a href=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/get-started\/add-a-custom-block-to-your-website-content\/\">PHP templating method<\/a>\u00a0instead.<\/li>\n<\/ol>\n\n\n\n<p>For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;a href=\"&lt;?php echo get_permalink( block_value( 'consider' )-&gt;ID ); ?&gt;\"&gt;\n    &lt;?php block_field( 'consider' ); ?&gt;\n&lt;\/a&gt;<\/code><\/pre>\n\n\n\n<p>The API will return a\u00a0<code>WP_Post<\/code>\u00a0object, and echo the Post&#8217;s\u00a0<code>title<\/code>. (See the\u00a0<a href=\"https:\/\/codex.wordpress.org\/Class_Reference\/WP_Post\">WP_Post<\/a>\u00a0class for details.)<\/p>\n\n\n\n<p>Example template file&nbsp;<code>\/blocks\/block-example.php<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n\/\/ Example Post Field\n\n&lt;a href=\"&lt;?php echo get_permalink( block_value( 'consider' )-&gt;ID ); ?&gt;\"&gt;\n    &lt;?php block_field( 'consider' ); ?&gt;\n&lt;\/a&gt;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Block Usage<\/h2>\n\n\n\n<p>To use the block with the Post field on your site, locate it in the blocks menu.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full border\"><a href=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-content\/uploads\/sites\/5\/2020\/08\/gcb-add-custom-block-to-page.png\"><img loading=\"lazy\" decoding=\"async\" width=\"855\" height=\"467\" src=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-content\/uploads\/sites\/5\/2020\/08\/gcb-add-custom-block-to-page.png\" alt=\"Screenshot of custom block in the blocks menu\" class=\"wp-image-136807\" srcset=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-content\/uploads\/sites\/5\/2020\/08\/gcb-add-custom-block-to-page.png 855w, https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-content\/uploads\/sites\/5\/2020\/08\/gcb-add-custom-block-to-page-300x164.png 300w, https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-content\/uploads\/sites\/5\/2020\/08\/gcb-add-custom-block-to-page-768x419.png 768w\" sizes=\"auto, (max-width: 855px) 100vw, 855px\" \/><\/a><\/figure>\n\n\n\n<p style=\"font-size:13px\" class=\"has-text-align-center\"><em>Click image to enlarge<\/em><\/p>\n\n\n\n<p>It will then display within your post or page editor where you can choose from the dropdown list.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full border\"><a href=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-content\/uploads\/sites\/5\/2020\/08\/gcb-post-field-in-editor.png\"><img loading=\"lazy\" decoding=\"async\" width=\"855\" height=\"357\" src=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-content\/uploads\/sites\/5\/2020\/08\/gcb-post-field-in-editor.png\" alt=\"Screenshot of Post field in the editor\" class=\"wp-image-136879\" srcset=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-content\/uploads\/sites\/5\/2020\/08\/gcb-post-field-in-editor.png 855w, https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-content\/uploads\/sites\/5\/2020\/08\/gcb-post-field-in-editor-300x125.png 300w, https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-content\/uploads\/sites\/5\/2020\/08\/gcb-post-field-in-editor-768x321.png 768w\" sizes=\"auto, (max-width: 855px) 100vw, 855px\" \/><\/a><\/figure>\n\n\n\n<p style=\"font-size:13px\" class=\"has-text-align-center\"><em>Click image to enlarge<\/em><\/p>\n\n\n\n<p>And on the front end of your site.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full border\"><a href=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-content\/uploads\/sites\/5\/2020\/08\/gcb-post-field-on-page-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"855\" height=\"190\" src=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-content\/uploads\/sites\/5\/2020\/08\/gcb-post-field-on-page-1.png\" alt=\"Screenshot of Post field on frontend of the site\" class=\"wp-image-136878\" srcset=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-content\/uploads\/sites\/5\/2020\/08\/gcb-post-field-on-page-1.png 855w, https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-content\/uploads\/sites\/5\/2020\/08\/gcb-post-field-on-page-1-300x67.png 300w, https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-content\/uploads\/sites\/5\/2020\/08\/gcb-post-field-on-page-1-768x171.png 768w\" sizes=\"auto, (max-width: 855px) 100vw, 855px\" \/><\/a><\/figure>\n\n\n\n<p style=\"font-size:13px\" class=\"has-text-align-center\"><em>Click image to enlarge<\/em><\/p>\n\n\n\n<p>You can also take advantage of the&nbsp;<code>WP_Post<\/code>&nbsp;object and return additional information.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php&nbsp;\n\/\/ Example Block\n?&gt;\n\n&lt;h3&gt;You might also consider:&lt;\/h3&gt;\n\n&lt;a href=\"&lt;?php echo get_permalink( block_value( 'consider' )-&gt;ID ); ?&gt;\"&gt;\n&nbsp; &nbsp; &lt;?php block_field( 'consider' ); ?&gt;\n&lt;\/a&gt;\n\n&lt;?php\n$post = block_value( 'consider );&nbsp;\n$post_img_attributes = wp_get_attachment_image_src( get_post_thumbnail_id( $post-&gt;ID ), 'medium' );\n$post_img_alttext = get_post_meta( get_post_thumbnail_id( $post-&gt;ID ), '_wp_attachment_image_alt', true );\n?&gt;\n&lt;div&gt;\n&nbsp; &nbsp; &lt;img\n&nbsp; &nbsp; &nbsp; &nbsp; src=\"&lt;?php echo $post_img_attributes&#91;0]; ?&gt;\"\n&nbsp; &nbsp; &nbsp; &nbsp; width=\"&lt;?php echo $post_img_attributes&#91;1]; ?&gt;\"\n&nbsp; &nbsp; &nbsp; &nbsp; height=\"&lt;?php echo $post_img_attributes&#91;2]; ?&gt;\"\n&nbsp; &nbsp; &nbsp; &nbsp; alt=\"&lt;?php echo $post_img_alttext; ?&gt;\"\n&nbsp; &nbsp; \/&gt;\n&lt;\/div&gt; <\/code><\/pre>\n\n\n\n<p>And on the front-end of your site.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full border\"><a href=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-content\/uploads\/sites\/5\/2020\/08\/gcb-post-field-on-page-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"855\" height=\"344\" src=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-content\/uploads\/sites\/5\/2020\/08\/gcb-post-field-on-page-2.png\" alt=\"Screenshot of Post field on the frontend of the site\" class=\"wp-image-136880\" srcset=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-content\/uploads\/sites\/5\/2020\/08\/gcb-post-field-on-page-2.png 855w, https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-content\/uploads\/sites\/5\/2020\/08\/gcb-post-field-on-page-2-300x121.png 300w, https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-content\/uploads\/sites\/5\/2020\/08\/gcb-post-field-on-page-2-768x309.png 768w\" sizes=\"auto, (max-width: 855px) 100vw, 855px\" \/><\/a><\/figure>\n\n\n\n<p style=\"font-size:13px\" class=\"has-text-align-center\"><em>Click image to enlarge<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Post field allows you to select one of your WordPress\u00ae posts from a searchable dropdown menu.1 Note: For a custom post type to display in the editor, when it is registered with&nbsp;register_post_type(),&nbsp;show_in_rest&nbsp;must be&nbsp;true. This is because the block editor uses the REST API. PHP API Controls Template Usage To display the Post field in [&hellip;]<\/p>\n","protected":false},"author":447,"featured_media":0,"parent":17394,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"class_list":{"0":"post-17521","1":"page","2":"type-page","3":"status-publish","5":"entry"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Post - Genesis Custom Blocks<\/title>\n<meta name=\"description\" content=\"Add a Post field to your custom Gutenberg block using the Block Lab WordPress plugin.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/fields\/post\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Post - Genesis Custom Blocks\" \/>\n<meta property=\"og:description\" content=\"Add a Post field to your custom Gutenberg block using the Block Lab WordPress plugin.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/fields\/post\/\" \/>\n<meta property=\"og:site_name\" content=\"Genesis Custom Blocks\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-10T17:01:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-content\/uploads\/sites\/5\/2021\/07\/gcb-post-field-settings-updated.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\":\"WebSite\",\"@id\":\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/#website\",\"url\":\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/\",\"name\":\"Genesis Custom Blocks\",\"description\":\"Create effective content faster.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/fields\/post\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-content\/uploads\/sites\/5\/2021\/07\/gcb-post-field-settings-updated.png\",\"contentUrl\":\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-content\/uploads\/sites\/5\/2021\/07\/gcb-post-field-settings-updated.png\",\"width\":1275,\"height\":849},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/fields\/post\/#webpage\",\"url\":\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/fields\/post\/\",\"name\":\"Post - Genesis Custom Blocks\",\"isPartOf\":{\"@id\":\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/fields\/post\/#primaryimage\"},\"datePublished\":\"2019-06-18T23:04:12+00:00\",\"dateModified\":\"2024-12-10T17:01:31+00:00\",\"description\":\"Add a Post field to your custom Gutenberg block using the Block Lab WordPress plugin.\",\"breadcrumb\":{\"@id\":\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/fields\/post\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/fields\/post\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/fields\/post\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Fields\",\"item\":\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/fields\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Post\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Post - Genesis Custom Blocks","description":"Add a Post field to your custom Gutenberg block using the Block Lab WordPress plugin.","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:\/\/developer.wpengine.com\/genesis-custom-blocks\/fields\/post\/","og_locale":"en_US","og_type":"article","og_title":"Post - Genesis Custom Blocks","og_description":"Add a Post field to your custom Gutenberg block using the Block Lab WordPress plugin.","og_url":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/fields\/post\/","og_site_name":"Genesis Custom Blocks","article_modified_time":"2024-12-10T17:01:31+00:00","og_image":[{"url":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-content\/uploads\/sites\/5\/2021\/07\/gcb-post-field-settings-updated.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/#website","url":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/","name":"Genesis Custom Blocks","description":"Create effective content faster.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/fields\/post\/#primaryimage","inLanguage":"en-US","url":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-content\/uploads\/sites\/5\/2021\/07\/gcb-post-field-settings-updated.png","contentUrl":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-content\/uploads\/sites\/5\/2021\/07\/gcb-post-field-settings-updated.png","width":1275,"height":849},{"@type":"WebPage","@id":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/fields\/post\/#webpage","url":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/fields\/post\/","name":"Post - Genesis Custom Blocks","isPartOf":{"@id":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/#website"},"primaryImageOfPage":{"@id":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/fields\/post\/#primaryimage"},"datePublished":"2019-06-18T23:04:12+00:00","dateModified":"2024-12-10T17:01:31+00:00","description":"Add a Post field to your custom Gutenberg block using the Block Lab WordPress plugin.","breadcrumb":{"@id":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/fields\/post\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/developer.wpengine.com\/genesis-custom-blocks\/fields\/post\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/fields\/post\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/"},{"@type":"ListItem","position":2,"name":"Fields","item":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/fields\/"},{"@type":"ListItem","position":3,"name":"Post"}]}]}},"featured_image_src":null,"featured_image_src_square":null,"_links":{"self":[{"href":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-json\/wp\/v2\/pages\/17521","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-json\/wp\/v2\/users\/447"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-json\/wp\/v2\/comments?post=17521"}],"version-history":[{"count":0,"href":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-json\/wp\/v2\/pages\/17521\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-json\/wp\/v2\/pages\/17394"}],"wp:attachment":[{"href":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-json\/wp\/v2\/media?parent=17521"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}