WordPress.org

Ready to get started?Download WordPress

Forums

How did they do this on their wordpress theme? (2 posts)

  1. someguy03
    Member
    Posted 3 years ago #

    I know how to style the images using floats to create the image grid but how did they call the thumbnails from a custom post type like this?

    http://www.armadamusic.com/music/page/2/?all&display

  2. sdelamorena
    Member
    Posted 3 years ago #

    They use the post thumbnail function in the loop.

    For example, with a category:

    <?php while ( have_posts() ) : the_post(); ?>
     <div class="labelitem1">
       <a href="<?php the_permalink(); ?>">
          <?php the_post_thumbnail(array(141,141)); ?>
       </a>
     </div>
    <?php endwhile; ?>

Topic Closed

This topic has been closed to new replies.

About this Topic