Home Forums Add-ons Repeater Field Return all field data from all IDs


Return all field data from all IDs

  • Hi,

    I use get_field('field_name') all the time (for my repeater fields) to return a multidimensional array containing all the field’s data for a particular page/post ID (it’s used within the loop).

    However, I wondering if there’s a way to get an array of ALL the field data without specifying an ID. That is; the field is used in multiple pages and posts, can I get all of that data from all post IDs, rather than just for one particular ID?

  • Hi @Steve Holland

    This is not possible via the get_field function in ACF.

    I would encourage you to look at writing a custom sql query to find all these values


  • Thanks Elliot, I was able to do that last night and it seems to work quite well

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

The topic ‘Return all field data from all IDs’ is closed to new replies.