Support

Account

Home Forums Pre-purchase Questions Do I need to upgrade to do this?

Helping

Do I need to upgrade to do this?

  • Hello

    I am reading this page https://www.advancedcustomfields.com/resources/group/ the part that says “This example demonstrates how to display the contents of a Group field.”

    I want to iterate through values in a group field called Videos and then print those values out.

     $videos = get_field('videos');
      print_r($videos);
    

    nothing is returned.

    I can get individual fields by passing a field name and ID but how do I get an array of all of the group field values?

  • sorry a mistake, I actually have a bunch of group fields that I need to iterate through, as I have a videos post type. So each group field represents a video and then this has a bunch of fields like video name, id etc.

    However I am still not understanding how to do this.

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

The topic ‘Do I need to upgrade to do this?’ is closed to new replies.