WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: NextGEN Gallery] PHP code for slideshow (3 posts)

  1. dhobeika
    Member
    Posted 4 years ago #

    what is the correct PHP code to insert a slideshow into my template that displays photos from all galleries on my website? I am trying to use this and it does not work:

    <?php echo do_shortcode('[slideshow id=x w=600 h=250]'); ?>

    When i set the id to a specific number like 1 or 2, it works fine. But I want the slideshow to cycle through ALL galleries, not just a specific one. Does anyone have any ideas?

    I have also tried putting commas between all the galleries such as the code below and it did not work:

    <?php echo do_shortcode('[slideshow id=1,2,3,4,5 w=600 h=250]'); ?>

    The sidebar widget has an option to cycle through all the images in all the galleries and that works fine, but I am trying to add it onto the top part of my template and have been looking for a solution for weeks. If anyone can help, I would greatly appreciate it.

  2. donalyza
    Member
    Posted 3 years ago #

    you may want to try this.

    <?php echo nggShowGallery(1,null) ?>

    1 being the nextgen id gallery.

  3. zakir-devstars
    Member
    Posted 3 years ago #

    Hi
    I am using following php code to display slideshow in home.php

    <?php echo nggShowGallery(13) ?>

    13 is the gallery ID where there are some images and it displays correctly.

    have a look Gorilla

    But I want pagination, like 1 2 3 button where I can browse the images when I click any number. I am just wondering whether nextgen supports this or not.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.