show only first element from a type with acf
If I understand this correctly, you want the whole code inside if ($type == “payment-services”) to run only once. There might be an easier way to do this, but a suggestion is: Add a variable with a certain value before your for loop (e.g. $run=”yes”) Put the code you only want to run the first … Read more