Support

Account

Home Forums Add-ons Repeater Field How can I count all acf repeater fields belonging to the specific post type? Reply To: How can I count all acf repeater fields belonging to the specific post type?

  • In order to do this you would need to

    1. Do a WP_Query() to get all of the posts
    2. Loop over the posts
    3. use get_post_meta() on the repeater instead of get_field(), this will return the count of rows for the repeater rather than the field contents.
    4. Add the returned values.