Support » Plugin: NextCellent Gallery - NextGEN Legacy » Page with all my Galleries

  • Resolved JuCotone

    (@jucotone)


    Hello
    I have two questions πŸ˜‰

    1 / Is it possible to have all my galleries automatically displayed on a unique page ?

    (Without adding this manually in my page)

    Page : photos
    Gallery more recent 10
    Gallery 9
    Gallery 8

    etc…

    2/ Widget
    I would like to display the last image uploaded in my sidebar and a link to my page photo … Do i have to code this part ? or a widget can do this ?
    (last photos : 1 image and link : “see all photos”)

    Thanks for you help !
    Julie

    https://wordpress.org/plugins/nextcellent-gallery-nextgen-legacy/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi Julie

    1. This isn’t possible, but you could add all galleries to an album and display the album. I will have a look if we can include this in the future.
    2. You can select Recent Images in the slideshow widget options, but you’ll have to add the link yourself (with a Text Widget, for example).

    Thread Starter JuCotone

    (@jucotone)

    Hi

    thanks for your answer and your help.!
    Maybe can y code the page with a loop (foreach) to display all galleries ?
    foreach ()
    [nggallery id=$gal]

    Could you help me with that ?

    Anyway thanks again for your quick answer !

    Julie

    Hi Julie

    I made a quick solution for you! Here’s what you do:

    1. Make a new page template. More information on that is available here.
    2. Add this code to your template, at the end of the content div (often right before </div><!– .entry-content –>):
      <?php
      global $nggdb;
      $galleries = $nggdb->find_all_galleries();
      
      foreach ( $galleries as $gallery ) {
      	echo nggShowGallery($gallery->gid);
      }
      
      ?>
    3. Add this at the very top (after the <?php tag):
      /*
      Template Name: All images
       */
    4. Make your page and select All Images as a theme.

    Hopefully this works as a temporary solution. I will have a look to see if we can’t include something like this in a future update πŸ™‚

    Thread Starter JuCotone

    (@jucotone)

    Hi !

    Thanks it works !
    can you tell me if i can use this [imagebrowser]

    instead of the slide Show ? (it’s not working, i juste have the link [Show picture list] and not directly the slideshow

    i have to replace nggShowGallery ?

    but wow thanks a lot ! it’s perfect !

    Julie

    Hmmm, I’m not totally sure what you mean, but I’ve taken another look and came to this conclusion:

    • If you want to use this with the ImageBrowser, replace nggShowGallery with nggShowImageBrowser. For a slideshow, use nggShowSlideshow.
    • NOTE: pagination (for galleries, imagebrowser) will NOT work, since you’re not using a shortcode (the same for the link to the slideshow)

    Making all these things work requires more than this quick solution. For it to work, the plugin needs to be edited.

    So, the only useful way to use it, is to disable pagination and display all images on one page.

    Thread Starter JuCotone

    (@jucotone)

    Yeah ! It’s perfect

    Thanks again !

    Julie

    Thread Starter JuCotone

    (@jucotone)

    oups resolved !

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Page with all my Galleries’ is closed to new replies.