How to include short code in home page? Status:

Home Forums Thumbnail Scroller (WP NextGEN Gallery Template) How to include short code in home page?

This topic is: resolved

This topic contains 6 replies, has 2 voices, and was last updated by  Ovidiu 3 years, 11 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)

  • Hi,

    How to include the scroller in my home page? I know how to do it in a post but what is the code to do it in my home.php?

    http://www.fiesta-quebec.com

    Thanks!



    Ovidiu Support Team #1013

    Hi,

    The code to add the shortcode in home.php is



    I guess I have to put that on a <div>? (sorry, I am a newbie in this)



    Ovidiu Support Team #1039

    No you have to put it in php.



    <?php echo do_shortcode(‘[nggallery id=208 template=dop-thumbnail-scroler]’);?>

    Like this?

    Thanks!



    And, one last question: could this thing be dynamic or I will have to change ID each time I upload a new gallery?

    Thanks for your help!



    Ovidiu Support Team #1057

    Hi,

    Yes, just like that. And you have to change the ID each time you upload a new gallery.


Viewing 7 posts - 1 through 7 (of 7 total)

The topic How to include short code in home page? is closed to new replies.