• Resolved hutton001

    (@hutton001)


    Hello, I do not speak English, but I have a problem with nivoslider. I put the slideshow in the page.php file and I want that for every page that I create, it inserts images from a specific folder.
    example:
    https://127.0.0.1:8080/wordpress/contacts/

    <div class="slider-wrapper theme-default">
        <div id="slider" class="nivoSlider">
            <a href="#" title="This is an example of a caption">
                <!--img src="<?php echo get_template_directory_uri() . '/images/images-homepage/images-01.jpg'; ?>" alt="" /-->
                <?php
                     echo "<img src=".get_template_directory_uri()."/images/images-".$name_page."/image-01.jpg\" alt=\"immagine\" />\n";
                     echo "<img src=".get_template_directory_uri()."/images/images-".$name_page."/image-02.jpg\" alt=\"immagine\" />\n";
                ?>
            </a>
        </div>
    </div>

Viewing 3 replies - 16 through 18 (of 18 total)
Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘slideshow with different pictures on each page’ is closed to new replies.