WordPress.org

Support

Support » Plugins and Hacks » [Plugin: NextGEN Gallery] Get first thumbnail inside have_posts() loop

[Plugin: NextGEN Gallery] Get first thumbnail inside have_posts() loop

  • Hi,

    Can I get the first (or someone) thumbnail of my NextGEN gallery inside a have_posts() loop?

    For example, in my index.php file I have this code:

    <?php query_posts('showposts=3&cat=6'); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
        <li><a href="<?php the_permalink() ?>" class="foto"></a><a href="<?php the_permalink() ?>" class="titulo"><?php the_title(); ?></a></li>
    <?php endwhile; ?>
    <?php endif; ?>

    Then, in the img HTML tag, I want put the on image of the gallery.

    Thanks!

    http://wordpress.org/extend/plugins/nextgen-gallery/

  • The topic ‘[Plugin: NextGEN Gallery] Get first thumbnail inside have_posts() loop’ is closed to new replies.