Support

Account

Home Forums General Issues Populate / Edit Taxonomy Fields on an Edit Screen Reply To: Populate / Edit Taxonomy Fields on an Edit Screen

  • Yes, this is possible, but complicated, and I don’t have any specific code to share.

    For the first bit, populating fields when a term is selected, you need to write JavaScript that makes an ajax request to get and populate the fields when the tax field changes. https://www.advancedcustomfields.com/resources/javascript-api/. There are some examples of doing similar things here (some work, some do not) https://github.com/Hube2/acf-dynamic-ajax-select-example.

    You’ll also need to create an acf/prepare_field filter that will load these fields’ values with current values from the term when a post is edited to reflect any changes made from another post.

    For the second part you need to create an acf/save_post filter that takes the submitted values and updated the term.