• Resolved raivan

    (@raivan)


    For a special application I have to list all the galleries assigned to a specific album with a PHP script. I had a look at the databse, both albums and galleries are there, but where is stored the relation like “gallery ID 5 -> album ID 2” between them? Is there a WP table which hosts this information?

    Anyone an idea?

    https://www.ads-software.com/plugins/nextgen-gallery/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Not sure, but is it not available in the album templates ? (album-compact.php album-extend.php)

    <!-- List of galleries -->
    	<?php foreach ($galleries as $gallery) : ?>
            ....
     	<?php endforeach; ?>

    that should iterate over all the galleries of the specified album….

    Luc

    Thread Starter raivan

    (@raivan)

    thanks for the tip, I will give it a try!

    Thread Starter raivan

    (@raivan)

    It worked out fine! I cloned the “album-extend.php” file and did the needed modifications then made a folder called “nggallery” in the root folder of my theme and moved the “album-mytemplate.php” file in it. to include the custom template: [album id=x template=mytemplate].

    thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Reading relation of gallery and album’ is closed to new replies.