Support

Account

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

Solved

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?

    • Elliot

    • July 8, 2013 at 12:57 pm

    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

  • 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)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.