• Hello,

    I’m looking from some days how to add a gallery directly on my template page, for example, I want to add on the bottom of all my single posts a gallery with the ID 3, is there a way to add something to display that?

    Thanks in advance.

    Cheers,
    S

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter SinusCom

    (@sinuscom)

    Hello,

    It’s resolved ??

    the solution :

    <?php
    $gal = '[gallery=X]';
    $gal = apply_filters('the_content', $gal );
    echo $gal;
    ?>

    X is the ID of the gallery to show.

    I have only a little problem with this code, how to limit for example the thumbs to only display 5 or 6 ?

    Cheers,
    S

    that’s wonderful, however, the twist is that i’m interested in showing different sidebar widget galleries. so although i can use your code to do it manually…there is a size and formatting difference. how do i tell it to display as the widget settings?

    thanks in advance!

    Ever figure out how to limit the # of pictures?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: NextGEN Gallery] gallery on template page’ is closed to new replies.