{"id":821,"date":"2021-03-24T12:25:58","date_gmt":"2021-03-24T12:25:58","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=article&#038;p=821"},"modified":"2022-10-17T10:52:06","modified_gmt":"2022-10-17T10:52:06","slug":"setting-the-auto-parent-child-relation-to-posts-via-a-frontend-form","status":"publish","type":"tips-and-tricks","link":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/setting-the-auto-parent-child-relation-to-posts-via-a-frontend-form\/","title":{"rendered":"Setting the Auto Parent-Child Relation to Posts Via a Front End Form (Legacy)"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"create-a-post-types-relation\">Create a Post Types Relation<\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-flow wp-block-group-is-layout-flow\"><div class=\"wp-block-group__inner-container\">\n<p class=\"offset\">Make sure that you do have the necessary post types to be interrelated. If not, create them. We\u2019ll be referring to these two: Country &amp; Tour. To create a relation, go to <strong><em>JetEngine &gt; Relations<\/em><\/strong> and set the <strong>One to Many<\/strong> relation as shown below:<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/09\/country-tour-relation-settings.png\" alt=\"country tour relation settings\">\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"create-a-test-form\">Create a Test Form<\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-flow wp-block-group-is-layout-flow\"><div class=\"wp-block-group__inner-container\">\n<p class=\"offset\">Go to <strong><em>JetEngine &gt; Forms &gt; Add New<\/em><\/strong> and create a form that allows adding a new post from the frontend:<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/09\/test-form-settings.png\" alt=\"test form settings\">\n\n\n\n<p class=\"offset\">In the <strong>Post-submit actions<\/strong>, configure the notification type like so:<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/09\/notification-type-settings.png\" alt=\"form notification settings\">\n\n\n\n<p class=\"offset\">The <strong>relation meta key<\/strong> can be taken from here:<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/09\/relation-meta-key-2.png\" alt=\"legacy relations meta key\">\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"display-the-form-on-the-frontend\">Display the Form on the Front-end<\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-flow wp-block-group-is-layout-flow\"><div class=\"wp-block-group__inner-container\">\n<p class=\"offset\">Open the <strong>Tour <\/strong>CPT and find the necessary post in the WordPress dashboard.&nbsp;<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/09\/single-tour-page.png\" alt=\"cpt post in the dashboard\">\n\n\n\n<p class=\"offset\">If it doesn\u2019t exist, you need to create it either in the Elementor theme builder or in the Crocoblock theme builder:<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/09\/editing-tour-single-page.png\" alt=\"edit tour single page\">\n\n\n\n<p class=\"offset\">Display the newly-created test form:<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/09\/form-in-elementor.png\" alt=\"form in elementor\">\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"fill-in-the-form\">Fill in the Form<\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-flow wp-block-group-is-layout-flow\"><div class=\"wp-block-group__inner-container\">\n<p class=\"offset\">On the front-end, try filling out the added form and press the \u201c<strong>Add new post<\/strong>\u201d button:<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/09\/test-form-on-the-frontend.png\" alt=\"front end form submission\">\n\n\n\n<p class=\"offset\">Go to the backend and check out the result. You\u2019re done!<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/09\/test-tour-in-wp-admin-panel.png\" alt=\"submitted test post\">\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Gain an understanding of creating a new child or parent post using the frontend form.<\/p>\n","protected":false},"author":11,"featured_media":0,"template":"","format":"standard","tipstricks-tags":[359],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Cannot Set a Parent\u2013Child Relation Via JetEngine Forms | Troubleshooting<\/title>\n<meta name=\"description\" content=\"Follow this troubleshooting article and learn to set the one-to-many Parent \u2013 Child post relation using the JetEngine-built frontend form.\" \/>\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\/tips-and-tricks\/setting-the-auto-parent-child-relation-to-posts-via-a-frontend-form\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cannot Set a Parent\u2013Child Relation Via JetEngine Forms | Troubleshooting\" \/>\n<meta property=\"og:description\" content=\"Follow this troubleshooting article and learn to set the one-to-many Parent \u2013 Child post relation using the JetEngine-built frontend form.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/setting-the-auto-parent-child-relation-to-posts-via-a-frontend-form\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-17T10:52:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/09\/country-tour-relation-settings.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=\"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\/tips-and-tricks\/setting-the-auto-parent-child-relation-to-posts-via-a-frontend-form\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/setting-the-auto-parent-child-relation-to-posts-via-a-frontend-form\/\",\"name\":\"Cannot Set a Parent\u2013Child Relation Via JetEngine Forms | Troubleshooting\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2021-03-24T12:25:58+00:00\",\"dateModified\":\"2022-10-17T10:52:06+00:00\",\"description\":\"Follow this troubleshooting article and learn to set the one-to-many Parent \u2013 Child post relation using the JetEngine-built frontend form.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/setting-the-auto-parent-child-relation-to-posts-via-a-frontend-form\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/setting-the-auto-parent-child-relation-to-posts-via-a-frontend-form\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/setting-the-auto-parent-child-relation-to-posts-via-a-frontend-form\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tips & tricks\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Setting the Auto Parent-Child Relation to Posts Via a Front End Form (Legacy)\"}]},{\"@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":"Cannot Set a Parent\u2013Child Relation Via JetEngine Forms | Troubleshooting","description":"Follow this troubleshooting article and learn to set the one-to-many Parent \u2013 Child post relation using the JetEngine-built frontend form.","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\/tips-and-tricks\/setting-the-auto-parent-child-relation-to-posts-via-a-frontend-form\/","og_locale":"en_US","og_type":"article","og_title":"Cannot Set a Parent\u2013Child Relation Via JetEngine Forms | Troubleshooting","og_description":"Follow this troubleshooting article and learn to set the one-to-many Parent \u2013 Child post relation using the JetEngine-built frontend form.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/setting-the-auto-parent-child-relation-to-posts-via-a-frontend-form\/","og_site_name":"Help Center","article_modified_time":"2022-10-17T10:52:06+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/09\/country-tour-relation-settings.png"}],"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\/tips-and-tricks\/setting-the-auto-parent-child-relation-to-posts-via-a-frontend-form\/","url":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/setting-the-auto-parent-child-relation-to-posts-via-a-frontend-form\/","name":"Cannot Set a Parent\u2013Child Relation Via JetEngine Forms | Troubleshooting","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2021-03-24T12:25:58+00:00","dateModified":"2022-10-17T10:52:06+00:00","description":"Follow this troubleshooting article and learn to set the one-to-many Parent \u2013 Child post relation using the JetEngine-built frontend form.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/setting-the-auto-parent-child-relation-to-posts-via-a-frontend-form\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/setting-the-auto-parent-child-relation-to-posts-via-a-frontend-form\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/setting-the-auto-parent-child-relation-to-posts-via-a-frontend-form\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/crocoblock.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"Tips & tricks","item":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/"},{"@type":"ListItem","position":3,"name":"Setting the Auto Parent-Child Relation to Posts Via a Front End Form (Legacy)"}]},{"@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\/tips-and-tricks\/821"}],"collection":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/tips-and-tricks"}],"about":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/types\/tips-and-tricks"}],"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=821"}],"wp:term":[{"taxonomy":"tipstricks-tags","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/tipstricks-tags?post=821"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}