• Resolved jricesystemsinsight

    (@jricesystemsinsight)


    Hi! Love the plugin, thank you so much for all your hard work.

    I was setting up a Taxonomy Term field and I noticed that the “Default Value” does not work properly. I tried to use the name and the slug for a specific term and I can never get it to be selected by default.

    I noticed the field is not mentioned in the Documentation

    Is this a bug or not supported?

    ACF, ACF Pro 5.2.9, ACF Extended 0.8.8

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

    (@hwk-fr)

    Hello,

    Thanks for the feedback! I’m glad you enjoy ACF Extended! The Taxonomy Terms field “Default Value” setting require Terms ID to work properly. You can also set one ID per line if you want to set multiple default value (for checkbox & select field type)

    Making that setting compatible with slugs would require extra work as ACF doesn’t support such behavior out of the box. I may add that feature in the future, along with the “Conditional Logic” using slugs feature request. See Trello Board: https://trello.com/c/8m91Pm8V/570-taxonomy-terms-add-term-slug-support-for-conditional-logic

    There’s no ETA yet tho.

    Have a nice day!

    Regards.

    Thread Starter jricesystemsinsight

    (@jricesystemsinsight)

    Thanks that works! I should have tried ID too I guess, but the description led me to believe no specificity was required.

    I am noticing another issue, but I am not sure if I should start another topic please let me know if that’s more appropriate:

    Its seems the return value only returns ID no matter if you choose object or name. Is this a part of the same issue?

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Yes you’re right, I’ll probably tune the description to make it a bit more descriptive.

    Regarding the “Return Value”, I just tested it and it works fine. Please make sure that you don’t have an another field with the same name, ACF may pick the other field configuration in some specific situations (when using local fields).

    Try to start with a blank new field group, new field and a blank page.

    Hope it helps!

    Regards.

    Thread Starter jricesystemsinsight

    (@jricesystemsinsight)

    The issue may be related to me using get_post_meta() vs get_field()

    Sorry for wasting your time, I’m not being a very good debugger today.

    Thanks again and I appreciate your fast responses!

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Haha! No worries. Yeah it’s normal then, get_post_meta() doesn’t format value, as it is just the native WordPress function to retrieve value from the DB.

    You should stick to ACF functions when it comes to ACF. In fact get_field() retrieve the value from the DB AND format it based on the field settings.

    Have a nice day!

    Regards.

    I have the same issue. I entered the term value to set the default value of a taxonomy field but it doesn’t work.

    • This reply was modified 3 years, 4 months ago by awjensen.
    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback! Please read my answer above:

    The Taxonomy Terms field “Default Value” setting require Terms ID to work properly. You can also set one ID per line if you want to set multiple default value (for checkbox & select field type)

    Hope it helps!

    Regards.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Taxonomy Term Default Value’ is closed to new replies.