Is this possible with PHP inside WordPress.
Basically, if I have a directory on my site called "promos", consisting of 1 - many images (since these images may change) that I would like to read from the PHP file to the carousel setting, then there is something similar to this:
<div class="scrollable" id="browsable"> <div class="items"> <?php $tot_images_from_promo_dir = [get_total_image_count_in_promos_dir]; for ( $counter = 1; $counter <= $tot_images_from_promo_dir; $counter ++) { echo "<div>"; echo "<a href="
I hope the above makes sense, but basically wants to somehow read the total number of images in my promo directory with php, and then use this value in the maximum value of the loop and read each image file name in the promo directory and go to mine
Really appreciate the php syntax for this.
Thank.
php wordpress
tonyf Aug 22 '10 at 3:20 2010-08-22 03:20
source share