Home Forums General Issues gettings values from a select Reply To: gettings values from a select

  • That’s correct, I didn’t pass the value of the post because I don’t have any.
    Let me explain you the module :
    I created some custom posts which are “formation”.
    Each formation post type has several custom fields that are handled by ACF, and “type de formation” is one of them.
    When I created these custom fields, I added ome values, because these fields are select fields.
    So they have several possible choices, as you already understood.
    But the choices are independant from the is of the formation.

    In my module I’m going to create a kind of search engine that will contain 2 selects : one of them will be “type de formation”. That’s why I need to retrieve all the possible values that were set in ACF.
    So when a user chooses a “type de formation” in my search engine, then it will display all the “formations” of this type.

    Do you understand better ?

    So in my module i’m trying here to build the select.
    That’s why I wanted to get the object “domaine_de_formation”, and in this case, all the possible choices.

    Because let’s say tomorrow I add a new choice in ACF, I don’t want to have to edit my module, obviously.

    I don’t know if I’m clear… sorry for my english, I’m french 🙂
    Thanks for your help.