WordPress do_shortcode first iteration
Figured out both issues. You can keep a count and find out when you are on the first iteration in the same go. static $count; if(!$count) { $count = 1; $state=” active”; } else { $count++; $state=””; } From the PHP Manual. “A static variable exists only in a local function scope, but it does … Read more