{"id":36849,"date":"2023-02-28T10:21:04","date_gmt":"2023-02-28T10:21:04","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=article&#038;p=36849"},"modified":"2023-07-28T12:37:16","modified_gmt":"2023-07-28T12:37:16","slug":"how-to-add-posts-related-to-user-to-form-field","status":"publish","type":"article","link":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-add-posts-related-to-user-to-form-field\/","title":{"rendered":"How to Add Posts Related to User to Form Field"},"content":{"rendered":"<div class=\"note-banner d-flex border-bold border-jetsmartfilters rounded overflow-hidden p-20\"><div class=\"mr-12\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z\" fill=\"#FA5450\"\/><\/svg><\/div><div class=\"d-flex flex-column\"><div class=\"text-900 mb-12\">Warning<\/div><p class=\"m-0\">For this case, you already need to have a relation created between users and posts.<\/p><\/div><\/div>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/03\/post-relation-1.jpeg\" alt=\"parent users editing window\">\n\n\n\n<h2 class=\"wp-block-heading\" id=\"create-query\">Create Query<\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>When attaching posts to users, go to <strong><em>WordPress Dashboard &gt; JetEngine &gt; Query Builder<\/em><\/strong>.<\/p>\n\n\n\n<p>Press the \u201c<strong>Add New<\/strong>\u201d<strong> <\/strong>button to create a <strong>Posts Query.<\/strong><\/p>\n\n\n\n<p>Choose the needed <strong>Query Type<\/strong> in the <strong>General <\/strong>section and go to the <strong>Post&amp;Page <\/strong>section.<\/p>\n\n\n\n<p>Here, search for the <strong>Post In <\/strong>field, hit the dynamic tags button next to it, and select the \u201cRelated Items\u201d option.&nbsp;<\/p>\n\n\n\n<p>Pick the needed item in the <strong>From Relation <\/strong>field, set a \u201cChild Object\u201d (because we will show the posts list) as <strong>From object (what to show)<\/strong>, and sort by the \u201cCurrent User ID,\u201d which can be selected in the <strong>Initial Object ID From (get initial ID here) <\/strong>field.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/03\/query-relation-2.jpeg\" alt=\"post and page section and post in field customization\">\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"build-form\">Build Form<\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>The new step is to create a form, so head to <strong><em>WordPress Dashboard &gt; JetFormBuilder &gt; Add New<\/em><\/strong>.<\/p>\n\n\n\n<p>Once the editor is opened, add a <strong>Select Field<\/strong>. If you click on the new field, you will see several fields for customization.Choose the \u201cGenerate Dynamically\u201d option in the <strong>Fill options from <\/strong>list, and the <strong>Generator function <\/strong>field will appear. Here, pick the \u201cGet values list from JetEngine Query\u201d option and specify the <strong>Field name<\/strong> \u2014 in the described case, it is \u201c47|ID|post_title\u201d where \u201c47\u201d is a Query ID.<\/p>\n\n\n<div class=\"note-banner d-flex border-bold border-jetsmartfilters rounded overflow-hidden p-20\"><div class=\"mr-12\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z\" fill=\"#FA5450\"\/><\/svg><\/div><div class=\"d-flex flex-column\"><div class=\"text-900 mb-12\">Warning<\/div><p class=\"m-0\">Change \u201c47\u201d into the ID of the query you use.<\/p><\/div><\/div>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/03\/form-field-3-new.png\" alt=\"generate dynamically options for a select field in jetformbuilder form\">\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"add-form-to-page\">Add Form to Page<\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>Go to the page, find the <strong>JetForm <\/strong>widget in the sidebar and drag-n-drop it to the page.&nbsp;<\/p>\n\n\n\n<p>Choose your form in the corresponding field, and customize it according to your needs.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/03\/form-elementor-4-new.png\" alt=\"jetform form settings in elementor\">\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"check-results\">Check Results<\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>That&#8217;s all, now you can open your page and check posts related to your user.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/03\/result-front-5-new.png\" alt=\"select field with query options on the front end\">\n<\/div><\/div>\n\n\n\n<p>Here is the result; now you know how to add WordPress posts related to the user to a <em>JetFormBuilder <\/em>form by using the <em>JetEngine <\/em>plugin.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, you will learn how to show related posts to the current user in the form.<\/p>\n","protected":false},"author":9,"featured_media":0,"template":"","format":"standard","builder-category":[],"article-category":[399],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Add Posts Related to User to Form Field \u2014 JetEngine | Crocoblock<\/title>\n<meta name=\"description\" content=\"Discover how to add posts related to the user to the WordPress form field with the help of the JetEngine and JetFormbuilder plugins.\" \/>\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\/jetengine\/how-to-add-posts-related-to-user-to-form-field\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Add Posts Related to User to Form Field \u2014 JetEngine | Crocoblock\" \/>\n<meta property=\"og:description\" content=\"Discover how to add posts related to the user to the WordPress form field with the help of the JetEngine and JetFormbuilder plugins.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-add-posts-related-to-user-to-form-field\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-28T12:37:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/03\/post-relation-1.jpeg\" \/>\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=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-add-posts-related-to-user-to-form-field\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-add-posts-related-to-user-to-form-field\/\",\"name\":\"How to Add Posts Related to User to Form Field \u2014 JetEngine | Crocoblock\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2023-02-28T10:21:04+00:00\",\"dateModified\":\"2023-07-28T12:37:16+00:00\",\"description\":\"Discover how to add posts related to the user to the WordPress form field with the help of the JetEngine and JetFormbuilder plugins.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-add-posts-related-to-user-to-form-field\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-add-posts-related-to-user-to-form-field\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-add-posts-related-to-user-to-form-field\/#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 Add Posts Related to User to Form Field\"}]},{\"@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":"How to Add Posts Related to User to Form Field \u2014 JetEngine | Crocoblock","description":"Discover how to add posts related to the user to the WordPress form field with the help of the JetEngine and JetFormbuilder plugins.","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\/jetengine\/how-to-add-posts-related-to-user-to-form-field\/","og_locale":"en_US","og_type":"article","og_title":"How to Add Posts Related to User to Form Field \u2014 JetEngine | Crocoblock","og_description":"Discover how to add posts related to the user to the WordPress form field with the help of the JetEngine and JetFormbuilder plugins.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-add-posts-related-to-user-to-form-field\/","og_site_name":"Help Center","article_modified_time":"2023-07-28T12:37:16+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/03\/post-relation-1.jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-add-posts-related-to-user-to-form-field\/","url":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-add-posts-related-to-user-to-form-field\/","name":"How to Add Posts Related to User to Form Field \u2014 JetEngine | Crocoblock","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2023-02-28T10:21:04+00:00","dateModified":"2023-07-28T12:37:16+00:00","description":"Discover how to add posts related to the user to the WordPress form field with the help of the JetEngine and JetFormbuilder plugins.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-add-posts-related-to-user-to-form-field\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-add-posts-related-to-user-to-form-field\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-add-posts-related-to-user-to-form-field\/#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 Add Posts Related to User to Form Field"}]},{"@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\/36849"}],"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\/9"}],"wp:attachment":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=36849"}],"wp:term":[{"taxonomy":"builder-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/builder-category?post=36849"},{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article-category?post=36849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}