Home Forums Add-ons Repeater Field Optimize WP_query (repeater) Reply To: Optimize WP_query (repeater)

  • The best way to optimize the queries it do get all of the meta data in a single query rather then getting the specific repeater fields. using

    $all_field = get_fields($post_id);

    This causes a single query to be done that loads all of the values to be retrieved and cached and it is faster than getting the repeater because getting just the repeater causes multiple queries to be done. It causes ACF to loop over each row of the repeater an does a separate query for each sub field of each row.