WordPress Options framework, I have 10 available slides for user to upload. for the markup for the slider i have.
<ul class="slides">
<li> <img src="<?php echo of_get_option('lfam_uploader_cimage'); ?>" /> </li>
<li><img src="<?php echo of_get_option('lfam_uploader_cimage2'); ?>" /></li>
<li> <img src="<?php echo of_get_option('lfam_uploader_cimage3'); ?>" /> </li>
<li> <img src="<?php echo of_get_option('lfam_uploader_cimage4'); ?>" /> </li>
<li> <img src="<?php echo of_get_option('lfam_uploader_cimage5'); ?>" /> </li>
<li> <img src="<?php echo of_get_option('lfam_uploader_cimage6'); ?>" /> </li>
<li> <img src="<?php echo of_get_option('lfam_uploader_cimage7'); ?>" /> </li>
<li> <img src="<?php echo of_get_option('lfam_uploader_cimage8'); ?>" /> </li>
<li> <img src="<?php echo of_get_option('lfam_uploader_cimage9'); ?>" /> </li>
<li> <img src="<?php echo of_get_option('lfam_uploader_cimage10'); ?>" /> </li>
</ul>
but if the user only uploads 3 images, the rest of the lists will show blank…
so i’ve been trying to use php to sort this out. can someone help me with this!
[php]
<?php $simg = of_get_option('lfam_uploader_cimage'); if ( $simg ) { if ( $simg['image'] ) { echo ''; } else { echo "no entry"; }; ?>[/php]
I need to try and do this for all 10 images…
please help