Getting images in a folder
-
Hello i’m trying to get all of the images in the folder Album photos to display in my header section
Now what i’m doing is using this code
i have a script that display only 1 picture at a time.
<div class="slideshow"> <img src="<?php bloginfo('template_url'); ?>/Album photos/1.jpg" alt="Cuisine" /> <img src="<?php bloginfo('template_url'); ?>/Album photos/2.JPG" alt="Cuisine2" /> <img src="<?php bloginfo('template_url'); ?>/Album photos/3.JPG" alt="Cuisine3" /> <img src="<?php bloginfo('template_url'); ?>/Album photos/4.JPG" alt="cuisine4" /> <img src="<?php bloginfo('template_url'); ?>/Album photos/5.jpg" alt="cuisine5" /> <img src="<?php bloginfo('template_url'); ?>/Album photos/7.png" alt="Salle de bain1" /> <img src="<?php bloginfo('template_url'); ?>/Album photos/6.jpg" alt="Mobilier1" /> </div>And it’s working fine, but i want to do that automaticly by using the right php code…
i did try a few but since i’m not a expert in php coding i can’t resolve this problem…
Thanks for you help
The topic ‘Getting images in a folder’ is closed to new replies.