Support

Account

Home Forums Backend Issues (wp-admin) In Taxonomy, what do "Save Terms" and "Load Terms" do?

Solved

In Taxonomy, what do "Save Terms" and "Load Terms" do?

  • Regarding these two options for the Taxonomy field…

    Save Terms – Connect selected terms to the post
    Load Terms – Load value from posts terms

    I see the helper text, and I have the Taxonomy doc, but I don’t quite see their uses. After all, isn’t ACF connecting a term and the linked object already?

    Are these options for establishing a native WordPress post/term connection, in addition to the ACF field connection?

    If so, are they to be used only when the Taxonomy field is applied to a Post type? ie. What use are these fields if I add a Taxonomy field to a User form or another Taxonomy edit form?

    Thanks.

  • These settings would be of no use added anywhere but on a post. They will not have any effect if added to a user or another taxonomy because WP does not natively support taxonomies for taxonomies or users. They also will not do anything if added to an “Attachement” post type because WP does not natively support taxonomies for attachments.

    When used on a post page, if these are not selected then ACF does not connect these in WP. So WP will not know that a post has a term. When these are set to yes then ACF uses wp_get_object_terms() and wp_set_object_terms() to load and save the values of the field.

    This feature can be turned because, well, it does not work if you have several taxonomy fields for the same taxonomy on the same post. If you have more than one field for the same taxonomy then they will overwrite each other and whichever field is saved last are the terms that will be assigned to the post.

    If you have some system that allows taxonomies for something that is not natively supported by WP, of if you want to have multiple fields taxonomy fields for the same taxonomy they these need to be turned off and you need to create your own actions when the post is saved that will create these relationships.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.