• Resolved pixelprod

    (@pixelprod)


    Hi,

    I created a set of custom fields.

    I use multiple Taxonomy Terms fields, which all use the same base taxonomy but are limited to some child deeper down the Taxonomy (Only allow {Term Name} children).

    When I get the values returned in the front end, they’re all in sync and have the values of the other fields as well. See this for example:

    terms

    If I add another term to the material field it will show up in specials and features as well.

    I guess the return function doesn’t respect the limitation set by the ACF options and will just query/return all of the posts terms of that taxonomy?

    Am I missing something, or do I have to check the parent term myself?
    Thanks!

    • This topic was modified 4 years, 3 months ago by pixelprod.
    • This topic was modified 4 years, 3 months ago by pixelprod.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback!

    The get_field() function return the value that is saved in the database, which means if you save “Sub Category A” & “Sub Category B”, it will only return them, even if you create a new “Sub Category C” afterward. Here is a video of my test.

    I’m not really sure where your new term is returned tho, since the saved metadata should not change when a new term is created.

    I would recommend to setup a simple test like mine, with all plugins disabled at the exception of ACF + ACF Extended, on the native Twenty Twenty One theme, just to make sure you don’t have any custom code which interfere in the logic.

    Let me know if you found something!

    Regards.

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Any news?

    Regards.

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

The topic ‘Multiple Taxonomy Terms fields return the same values’ is closed to new replies.