Return to Snippet

Revision: 49840
at July 31, 2011 04:43 by sridhar


Initial Code
// index.php:

				<?php if (has_post_thumbnail()) { ?>
					<div class="front-page-thumbnail">
						<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail('front-page-thumbnail'); ?></a>
					</div>
				<?php } ?>	
<div class="post-content">
<?php the_excerpt(); ?>
</div>

// functions.php:
add_image_size('front-page-thumbnail', 150, 150, true);

Initial URL


Initial Description


Initial Title
For showing excerpts w/ thumbnails on Posts page

Initial Tags
wordpress

Initial Language
PHP