{"id":18019520,"date":"2024-09-17T10:06:11","date_gmt":"2024-09-17T10:06:11","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/dynamically-related-fields-on-the-frontend\/"},"modified":"2024-09-17T10:06:11","modified_gmt":"2024-09-17T10:06:11","slug":"dynamically-related-fields-on-the-frontend","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/dynamically-related-fields-on-the-frontend\/","title":{"rendered":"Dynamically related fields on the frontend"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hi,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I have two CPTs related to each other (e.g. CPT &#8220;A&#8221; related to CPTs &#8220;A1&#8221; and &#8220;A2&#8221;, and CPT &#8220;B&#8221; related to CPTs &#8220;B1&#8221; and &#8220;B2&#8221;.<br \/>Is there a way through the plugin to set two fields on the frontend so that only &#8220;A1&#8221; and &#8220;A2&#8221; are displayed in the list in one field if I have selected &#8220;A&#8221; in the other related field, and only &#8220;B1&#8221; and &#8220;B2&#8221; if I have selected &#8220;B&#8221; in the other field?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks.<\/p>\n","protected":false},"template":"","class_list":["post-18019520","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18019520","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18019520\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18019520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}