Create repeatable sets of subfields for team rosters, feature comparisons, pricing tables, and multi-media sliders. Enjoy drag-and-drop reordering, collapsed previews, and an ultra-fast PHP loop API.
Repeater fields are one of the most essential tools in modern WordPress theme development. MetaForge Engine simplifies repeater management with a modern UI and robust backend architecture.
Keep WordPress edit screens tidy. Collapse long lists of repeater items into compact summary pills displaying a selected subfield label.
Clean Editor ExperienceContent editors can reorder slides, team members, or agenda items in seconds using buttery-smooth drag-and-drop handles.
Touch & Desktop FriendlyEnforce editorial standards by setting minimum and maximum row restrictions (e.g., minimum 3 testimonials, maximum 6 features).
Validation RulesEvery native field type can be placed inside a repeater: images, rich WYSIWYG editors, color pickers, relation selectors, and even sub-repeaters.
Full Field MatrixShow or hide specific subfields inside a repeater row dynamically based on selections made in other subfields within that same row.
Row-Level ConditionsMetaForge stores repeater structure efficiently, preventing MySQL query degradation when iterating large numbers of repeated rows.
Scales to 500+ RowsIterating repeater fields in your WordPress theme templates is clean and straightforward with metaforge_have_rows(), metaforge_the_row(), and metaforge_get_sub_field().
This standard loop pattern ensures subfields are automatically contextualized to the current active row.
<?php
/**
* Standard WordPress Repeater Loop Example
* File: template-parts/team-grid.php
*/
// Check if the repeater field has rows of data
if (metaforge_have_rows('team_members')) : ?>
<section class="team-grid">
<h2><?php esc_html_e('Meet Our Leadership Team', 'my-theme'); ?></h2>
<div class="team-cards-container">
<?php
// Loop through the rows of data
while (metaforge_have_rows('team_members')) : metaforge_the_row();
$name = metaforge_get_sub_field('member_name');
$role = metaforge_get_sub_field('member_role');
$bio = metaforge_get_sub_field('member_bio');
$photo_id = metaforge_get_sub_field('member_photo');
$linkedin = metaforge_get_sub_field('member_linkedin');
?>
<article class="team-card">
<?php if (!empty($photo_id)) : ?>
<div class="team-avatar">
<?php echo wp_get_attachment_image($photo_id, 'medium', false, ['alt' => esc_attr($name)]); ?>
</div>
<?php endif; ?>
<h3><?php echo esc_html($name); ?></h3>
<p class="team-role"><?php echo esc_html($role); ?></p>
<p class="team-bio"><?php echo esc_html($bio); ?></p>
<?php if (!empty($linkedin)) : ?>
<a href="<?php echo esc_url($linkedin); ?>" target="_blank" rel="noopener noreferrer" class="team-social-link">
<?php esc_html_e('LinkedIn Profile →', 'my-theme'); ?>
</a>
<?php endif; ?>
</article>
<?php endwhile; ?>
</div>
</section>
<?php
// Reset repeater loop pointer
metaforge_reset_rows();
endif; ?>For high-throughput templates, fetch the entire repeater dataset as an indexed multidimensional array using metaforge_get_repeater().
<?php
/**
* Alternative Fast Fetch: Get entire repeater as a sanitized PHP array
*/
$pricing_tiers = metaforge_get_repeater('pricing_plans');
if (!empty($pricing_tiers) && is_array($pricing_tiers)) {
foreach ($pricing_tiers as $plan) {
$title = $plan['plan_name'] ?? '';
$price = $plan['monthly_price'] ?? 0;
$badge = $plan['featured_badge'] ?? false;
echo '<div class="plan-card ' . ($badge ? 'featured' : '') . '">';
echo '<h4>' . esc_html($title) . '</h4>';
echo '<span class="price">$' . esc_html($price) . '/mo</span>';
echo '</div>';
}
}See how professional developers and digital agencies use MetaForge repeaters in production.
Manage tiers with plan names, prices, billing frequency, and a nested repeater of checkmark feature items.
Saas & E-CommerceGive clients a clear interface to add team members with photos, job titles, social handles, and department filters.
Agency WebsitesStructure multi-track conferences with speaker bios, talk summaries, start times, and room assignments.
Events & SummitsAnswers to common developer questions about WordPress repeater fields.
Dive deeper into advanced WordPress custom field layouts.
Admin & Customer Account Portal
Activate your Pro license key and customer portal