Support

Account

Home Forums General Issues Get conditional field by name Reply To: Get conditional field by name

  • The value has to be set for the current post, it does not matter if other posts have a value.

    
    get_field_object('cidade-pr');
    

    assumes that you want to get the field object associated with the global post.

    You should be getting the field that this field is conditional on, testing that field to decide whether or not to get this field.

    Or you need to use the field key