• Resolved NaturalEnquirer

    (@naturalenquirer)


    I’m using ACF Extended Taxonomy Terms field type to set a default term for new posts which works as long as Load Terms is not selected. Am I right that I must not select “Load Terms” for this to work? I had been using “Load Terms” for my fields because I thought it was reading the values from an existing post, but posts seem to show correct field data without that checked. Could you explain when to use or not use the Load (and Save) Terms?

    Thank you for your great support!

Viewing 1 replies (of 1 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback!

    The “Load/Save Terms” settings in the ACFE Taxonomy Terms Field works exactly the same in the native ACF Taxonomy field.

    Once the “Load” setting is enabled, the field will stop loading its value from the Post Meta, but it will load the builtin WP_Post Term instead. This is why using a default value won’t work anymore, since the value is loaded by WordPress and not by ACF anymore (schematically).

    If you want to set a default post term with the “Load Terms” setting enabled, I would recommend to rather do it with a native WordPress method. Using wp_set_post_terms() for example, or with the default_term parameter in the register_taxonomy() declaration.

    You’ll more information on Stackoverflow on this topic if needed.

    Hope it answers your question.

    Regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Load and save terms’ is closed to new replies.