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?