ACF Repeater Subfields Issue
August 7, 2025 · AI Conversations
> **Repeater subfields are showing on the Add/Edit Product page, but not in the ACF field group editor.**
### Let's troubleshoot and solve this:
—
### ✅ Step-by-Step Checklist:
1. **Make sure you've added subfields inside the repeater**:
– In the field group editor, you must **click on the Repeater field** (`Upsell Products`) to **expand it**, then click **"Add Field"** inside it.
– If you don't define subfields inside the repeater, it will show an empty repeater on the product page.
2. **You might be confusing the top-level fields with subfields**:
– A common mistake is adding fields at the root level instead of inside the Repeater. They need to be *nested*.
3. **Check nesting UI in ACF**:
– If you're using ACF Pro:
– Open the field group editor.
– Expand the `Upsell Products` repeater field.
– Add fields such as:
– `Product` (Post Object or Relationship pointing to Products)
– `Label`
– `Priority`, etc.
– Make sure they appear indented under `Upsell Products`.
—
### 🔧 If Still Not Working:
#### Option 1: Export Field Group JSON and Check
1. Go to **Custom Fields → Tools → Export Field Groups**.
2. Export the JSON and confirm whether subfields appear in the repeater definition.
3. If they are **not present**, you haven’t added them properly.
#### Option 2: Re-create the Repeater
Sometimes ACF glitches. Try:
– Deleting the repeater field.
– Creating a new one (`upsell_products_2`) and **correctly add subfields inside**.
—
### 💡 Quick Tip for Product Page Display
If you're using `Post Object` subfields inside the repeater to select upsell products, this is how you get them on the frontend:
if( have_rows('upsell_products') ):
while( have_rows('upsell_products') ): the_row();
$product = get_sub_field('product');
echo '<a href="' . get_permalink($product->ID) . '">' . get_the_title($product->ID) . '</a>';
endwhile;
endif;
—
Would you like to share a screenshot of your **full field group editor with repeater expanded**, or export the field group JSON so I can verify?