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?
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?
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; ?>This topic has been closed to new replies.