WordPress.org

Forums

NextGEN Gallery
Get first thumbnail inside have_posts() loop (1 post)

  1. rafaelks
    Member
    Posted 3 years ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • NextGEN Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic