Code: Custom-post-type-template ----Custom post type template
<?php
/* /*
Template Name: test Post Type Gallery
*/
get_header();
?>
<div id="container">
<div id="content" role="main">
<div id="content" role="main">
<?php $loop = new WP_Query( array( 'post_type' => 'bird', 'posts_per_page' => 10 ) ); ?>
<?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
<ul class="gallery-ul">
<li class="the-picture"><?php the_title( '<h2 class="picture-title"><a href="' . get_permalink() . '" title="' . the_title_attribute( 'echo=0' ) . '" rel="bookmark">', '</a></h2>' ); ?>
<a href="-----?????????--------"> <?php the_post_thumbnail(array(200,200)); ?></a></li>
</ul>
</ul>
<?php endwhile; ?>
</div><!-- #content -->
</div><!-- #container -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Functions.phpFunctions.php
This is for the Size of the Images