adding repeater

This commit is contained in:
Manish
2024-03-12 15:59:02 +05:45
parent c4d4fe8483
commit f67864277a
31 changed files with 47 additions and 179 deletions

View File

@@ -17,9 +17,9 @@
// Check if the ACF repeater field exists
if (have_rows('whyus', 54)) :
// Counter variable to keep track of the number of fields displayed
$counter = 0;
$counter = 1;
// Loop through the repeater field
while (have_rows('whyus', 54) && $counter <= 2 ) : the_row();
while (have_rows('whyus', 54) && $counter <= 3 ) : the_row();
// Increment the counter
$counter++;