Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I usually get JJ NextGen JQuery Carousel with the short code:

<?php echo do_shortcode( '[jj-ngg-jquery-carousel gallery="2" width="120" height="120" visible="4" scroll="4" auto="0" wrap="circular" order="sortorder" gap="0" skin_class="jcarousel-skin-lango150"]' ); ?>

which is related to the nextGen gallery(id=2), previously created on the admin area.

So, I'm trying to set this code on a single-{post type}.php, to be able to dynamically associate the gallery of each post, and retrieve their respective images, like:

<?php if(have_posts()) : ?>
<?php while(have_posts()) : the_post(); ?>
<!-- do-stuff -->
<?php echo do_shortcode( '[jj-ngg-jquery-carousel gallery="name-given-to-gallery" width="120" height="120" visible="4" scroll="4" auto="0" wrap="circular" order="sortorder" gap="0" skin_class="jcarousel-skin-lango150"]' ); ?>
<?php endwhile; ?>
<?php endif; ?>

Is it possible? Thanks in advance.

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.