Loop through multiple custom fields with increasing number
You need a loop within a loop – loop through a counter, and for each value, check for the existence of each key with the current counter value appended. // max custom field index $number = 40; // the counter $counter=””; // the meta keys to check for $keys = array( ‘custom_text’, ‘custom_image’, ‘custom_video’ ); … Read more