How do I read an array key of an associative array? – WordPress
This is what I'm doing: $content = array(get_post_meta($postId, 'content')); $media = array(get_post_meta($postId, 'media')); $yt = array(get_post_meta($postId, 'youtube')); $max = max(count($content), count($media), count($yt)); $combined = []; for($i = 0; $i <= $max; $i++) { if(isset($content[$i])) { $combined[] = ["type" => "content",…