WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
Gallery ID is Page ID (1 post)

  1. freacore
    Member
    Posted 2 years ago #

    Hi,
    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?

    http://wordpress.org/extend/plugins/nextgen-gallery/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic