WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
Display recent galleries picts from selected album (3 posts)

  1. JohanPirlouit
    Member
    Posted 4 months ago #

    Hi everyone, hi Photocrati,

    I use NGG 2.0.59 and WP 3.8.1 and I wonder if there is a way through shortcodes to display recent picts from galleries that are parts of a selected album and into a custom template (the new NGG 2.0 GUI we use in the page content editor can't do it)...

    For the moment, with the new NGG 2.0 GUI we use in the page content editor I can:
    - Select NextGEN Basic Thumbnails as a Display Type.
    - Select Recent Images as source.
    - Define Number of Images To Display.
    - Select a custom template (located into the 'nggallery' dir into my WP theme) to customize the display settings.

    This works great as you can see in my home page > http://www.nicolasullern.net/ (my custom template also retrieves and displays Galleries names and links for the picts that are displayed in the short recent picts list).

    But my goal would be to do the same but by selecting an album:
    - Select an album id.
    - Retrieve galleries that are linked to this album.
    - Retrieve recent images for these galleries, limited to xx images.
    - Select a custom template to display the picts.

    Is it possible to do this kind of thing with shortcodes? The 'Other Examples' section in the page http://www.nextgen-gallery.com/nextgen-gallery-shortcodes/ is empty, no other examples are shown...

    Thanx to anyone that could help me...

    Regards,
    Johan

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

  2. photocrati
    Member
    Plugin Author

    Posted 4 months ago #

    @JohanPirlouit - If you are already showing this "recent images gallery" on a page, have you considered using the "Link to page" option for that gallery so the Album simply opens that page and displays the gallery as you are already showing it?

    - Cais.

  3. JohanPirlouit
    Member
    Posted 3 months ago #

    Hi Cais,

    Thank you for your reply, I've already done that on many of my website's subpages.

    It is a bit hard for me to explain what I want in english and I apologize for that... So, let's take an example:

    5 galleries:
    - "design", containing 8 picts
    - "nature", containing 22 picts
    - "people", containing 20 picts
    - "road", containing 15 picts
    - "sport", containing 12 picts

    2 albums:
    - "home", containing "design" and "people" (total 28 picts)
    - "travel", containing "nature", "road" and "sport" (total 49 picts)

    My goal is to show in one single page (the front page) last 15 picts of the album "home" (last 15 of 28), not the 15 recent picts of the entire NGG (77 picts; currently this option doesn't care of galleries nor albums)...

    I thought it might be possible with shortcodes but I may be wrong, I don't know. For the moment I will try to use directly the wpdb object method (or any similar WP method) to match my goal...

    Anyway, if anybody (including you ;-) ) has other ideas, I'm still "opened"...

    Regards,
    Johan

Reply

You must log in to post.

About this Plugin

About this Topic