{"id":847,"date":"2025-03-24T14:27:50","date_gmt":"2025-03-24T14:27:50","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/how-do-i-set-up-auto-fill-for-linked-posts\/"},"modified":"2025-04-03T15:24:11","modified_gmt":"2025-04-03T14:24:11","slug":"how-do-i-set-up-auto-fill-for-linked-posts","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/custom-post-types-extension\/how-do-i-set-up-auto-fill-for-linked-posts\/","title":{"rendered":"How do I set up auto-fill for linked posts?"},"content":{"rendered":"<p>To set up auto-fill for linked posts follow these steps.<\/p>\n<p>We will set up a linked post field on the event post type, linked to places, in order to auto-fill the events fields from the places post type. We will choose what fields are to be filled, then check that it works.<\/p>\n<p>Add the linked posts field<\/p>\n<p>In the Events Settings, choose the fields to be filled<\/p>\n<p>Test the field in a new Event, to link to the Place and then fill fields from the event.<\/p>\n<p><img width=\"920\" height=\"784\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-NFtwg3TL8K-1024x873.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-NFtwg3TL8K-1024x873.png 1024w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-NFtwg3TL8K-300x256.png 300w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-NFtwg3TL8K-768x655.png 768w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-NFtwg3TL8K-1536x1310.png 1536w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-NFtwg3TL8K.png 1849w\" sizes=\"auto, (max-width: 920px) 100vw, 920px\" \/><\/p>\n<p>In the Events Settings, choose the fields to be filled<\/p>\n<p><img width=\"362\" height=\"1024\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-R0jomq2T5n-362x1024.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-R0jomq2T5n-362x1024.png 362w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-R0jomq2T5n-106x300.png 106w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-R0jomq2T5n-768x2170.png 768w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-R0jomq2T5n-725x2048.png 725w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-R0jomq2T5n.png 1183w\" sizes=\"auto, (max-width: 362px) 100vw, 362px\" \/><\/p>\n<p>Test the field in a new Event, to link to the Place and then fill fields from the event.<\/p>\n<p><img width=\"920\" height=\"156\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-pi30Ig3LRb-1024x174.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-pi30Ig3LRb-1024x174.png 1024w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-pi30Ig3LRb-300x51.png 300w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-pi30Ig3LRb-768x130.png 768w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-pi30Ig3LRb-1536x260.png 1536w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-pi30Ig3LRb.png 1622w\" sizes=\"auto, (max-width: 920px) 100vw, 920px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To set up auto-fill for linked posts follow these steps. We will set up a linked post field on the event post type, linked to places, in order to auto-fill the events fields from the places post type. We will choose what fields are to be filled, then check that it works. Add the linked [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[674,675,676],"article\/categories":[213,423],"class_list":["post-847","gd_place","type-gd_place","status-publish","hentry","gd_place_tags-fill","gd_place_tags-auto-fill","gd_place_tags-autofill","gd_placecategory-extensions-features","gd_placecategory-custom-post-types-extension"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/847","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/types\/gd_place"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/comments?post=847"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/847\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=847"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=847"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}