• Hi,

    I am looking for a possibility to add one of my albums to my frontpage, similar to newspaper sites like https://www.spiegel.de. I’ve only found the way to use a shortcode on a page already.

    I guess there should be a way to solve the problem: using the function. Until I am not a php-secialist I do need help to find the function.

    Is there anybody able to help?

    Thx
    Frank

Viewing 2 replies - 1 through 2 (of 2 total)
  • To add an album place this code in your template file were you want it to show (i.e. index.php): <?php echo nggShowAlbum($albumID, $template); ?> where $template is either ‘compact’ or ‘extend'(optional and defaults to extend).

    To add a gallery: <?php echo nggShowGallery($galleryID, $template, $images); ?> where $template is either ‘carousel’ or ‘caption’ (unless you have download/created custom themes) and $images is the # of images per page. Both are optional while $galleryID is required.

    To add a slideshow: <?php echo nggShowSlideshow($galleryID, $width, $height); ?>

    Hope that helps.

    Paul

    Thread Starter frankbhv

    (@frankbhv)

    Hi Paul,

    seems to be the solution.

    Thank you very much.

    Best wishes
    Frank

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: NextGEN Gallery] Album on index.php’ is closed to new replies.