WordPress.org

Ready to get started?Download WordPress

Forums

Getting images in a folder (1 post)

  1. NordSud
    Member
    Posted 3 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.