NextGEN Gallery
Gallery ID is Page ID (1 post)

  1. freacore
    Posted 4 years ago #

    I want NextGen Gallery to use the page id as the gallery id.
    The following code works in articles with php enabled:
    [nggallery id=<?php the_ID(); ?>]

    But I want to use it in a templates.php and there it does not work. With the above code it looks like:
    $return .= "[nggallery id=<?php the_ID(); ?>]";

    How can I set nggallery alays to use the page id?


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • NextGEN Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic