Help please

Heya guys i am having issues with my code and im new to php so cant quite figure this out by myself. Although im sure im so close to the right answer. I basically need to allow 10 images to be shown for a gold subscription, 5 for a silver and one for a standard sub. This is the code i have atm, if anyone can help me to achieve this i would be eternally grateful. I understand its a WP array its calling from. But i always thought [0]would only call the first image but it calls all of them? I assume because of the loop but i dont quite understand.

[php]if (sizeof($imgMeta)>0) {
echo ‘

’;
                  foreach ($imgMeta as $value) {
                  if ($value) {
	      $imgUrl = wp_get_attachment_image_src($value,'thumbnail');
								

                  echo '<img src="'.$imgUrl[0].'">';

}
}
echo ‘

’;
}
}
 if($i > 1 && $package !='Gold');{
                              
        echo '<img src="'.$imgUrl[0].'">';

                        }[/php]
Sponsor our Newsletter | Privacy Policy | Terms of Service