WordPress.org

Forums

[Plugin: NextGEN Gallery] NextGen - API ? (2 posts)

  1. TomBurr
    Member
    Posted 5 years ago #

    I'm looking for a gallery to help me sort my images into categories. However I would very much like to display the images in my own way.

    What i am hoping is that there is an API for NextGen Gallery where I can say 'give me all the picture id's where Gallery=x' or 'give me all the picture id's where tag=y'.

    Is this possible please, I've really looked online, but can only find ways to display the images, not just to interrogate the gallery for data.

    Thanks!

    Tom

  2. Will Kemp
    Member
    Posted 5 years ago #

    The data you're talking about is all in the ($wpdb->prefix)ngg_pictures table. You don't need an API to use it, just a few sql statements.

    Depending on exactly what you want to do, your best bet is probably to write a plugin that returns that data to the theme - maybe using a shortcode.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.