We have many clients who want photo galleries and for one particular site, I thought the carousel would work. I wanted to put the carousel into the header but couldn’t find ANY documentation other than using the short code [jj-ngg-jquery-carousel html_id=”about-jcarousel” gallery=”2″ visible=”6″ scroll=”1″ auto=”1″]. That shortcode didn’t work in the header php.
FINALLLY I found someplace that stated that I needed this phrase to make the jj nextgen jquery carousel to appear:
<?php echo do_shortcode(‘[jj-ngg-jquery-carousel html_id=”about-jcarousel” gallery=”2″ visible=”6″ scroll=”1″ auto=”1″]’); ?>
In general, to use shortcode within the php files, see this documentation: http://codex.wordpress.org/Function_Reference/do_shortcode
Leave a Reply