adding repeater
This commit is contained in:
@@ -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++;
|
||||
|
||||
|
Reference in New Issue
Block a user