• Resolved pixelprod

    (@pixelprod)


    Hi!

    Great plugin! But I have a question regarding the Taxonomy Terms field.

    It saves and loads the assigned terms correctly, but when I retrieve the field data (no matter if get_fields() or get_field()), the array contains all available terms in that taxonomy. I would expect that only assigned terms will return, no?

    For the field itself, I set that only childs of a specific term are available to select, with allowed NULL and multi select.

    Of course it’s no problem to write a simple function that does the job, but I wonder if this is the intended behavior?

    Thanks! ??

    • This topic was modified 1 year ago by pixelprod.
    • This topic was modified 1 year ago by pixelprod.
    • This topic was modified 1 year ago by pixelprod.
Viewing 1 replies (of 1 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback, and sorry for the late answer.

    This is a strange issue. All terms should not be returned when using get_field() or get_fields(), only the one that are actually saved.

    I tried to a simple test, and I wasn’t able to reproduce the issue. Here is a video of my test.

    Maybe you have some custom code somewhere in your theme or a third party plugin that would interfere with the native ACF load_value logic?

    In order to isolate the issue, I would recommend clone your website on a development / staging environment using Duplicator, or your hosting backup solution. Then try to disable all your plugins one-by-one (at the exception of ACF Pro & ACF Extended) until you find which one cause the issue.

    If the problem persists, try switch to the native WP Twenty Twenty Two theme, to make sure you don’t have any custom code in your theme which would break the feature.

    In all cases you should be able to confirm it works like I did, by setting up a clean WP install with ACF Pro + ACF Extended only, with a simple test field.

    Let me know if you managed to fix the issue.

    Thanks!

    Regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Taxonomy Terms return all terms’ is closed to new replies.