Artist thumb

This commit is contained in:
nikolark committed 2013-05-10 13:16:20 +02:00
1 parent fd751e4608
commit 4f02e82d15
2 files changed
+4 -3

No files matched your search

+1
View File
@@ -12,6 +12,7 @@ add_theme_support( 'post-thumbnails' );
add_image_size( 'eight-columns', 650, 500, true );
add_image_size( 'four-columns', 310, 160, true );
add_image_size( 'artist-thumb', 310, 260, true );
function studio_enqueue_scripts() {
@@ -21,9 +21,9 @@ Template Name: Artists page
/* Print our custom post type */
$query = new WP_Query( array ( 'post_type' => 'artist', 'orderby' => 'title', 'order' => 'asc') );
while ( $query->have_posts() ):
$query->the_post();
echo '<li><a href="'.get_permalink().'">'.get_the_post_thumbnail('four-columns') . get_the_title() . '</a></li>';
endwhile;
$query->the_post(); ?>
<li><a href="<?php the_permalink();?>"><?php the_post_thumbnail('artist-thumb'); the_title(); ?></a></li>
<?php endwhile;
wp_reset_postdata();?>
</ul>
</section> <!-- end article section -->