Support

Account

Home Forums General Issues Get_fields values only from specific field types

Helping

Get_fields values only from specific field types

  • Hi,

    I’m trying to get specific types of fields from a post by post id with get_fields. For instance I want to have only the values of a checkbox, radio and number fields. I did try it with get_field_oject but this won’t get me information about the field type.

    Is this possible and as so, how to? Thanks!

  • Hi @LeffDesign

    Please use the get_field_objects function and then within the loop, you can look at the $field[‘type’] to determine it’s type.

    Thanks
    E

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

The topic ‘Get_fields values only from specific field types’ is closed to new replies.