Return to Snippet

Revision: 32643
at October 1, 2010 02:07 by richerimage


Initial Code
function custom_featured_posts() {
	if (is_page(heathgrange))
	{
	$custom_loop = new WP_Query('showposts=50&category_name=heath-grange');
	if ( $custom_loop->have_posts() ) : 
		echo '<p class="alert" style="clear:both;"><span class="pb">Take a look at the blog posts for this site</span> and see it take shape from the comfort of your home.<br />You can easily <a href="http://eepurl.com/Es0x">subscribe to receive weekly updates here</a>.</p>';
		echo '<ul class="featured_posts">';
		while ( $custom_loop->have_posts() ) : $custom_loop->the_post();

			$post_image = thesis_post_image_info('thumb');
			echo '<li class="featured_posts">' . $post_image['output'] . ' <a title="go to article" href="' . get_permalink() . '">' . get_the_title() . '</a><p>' . get_the_excerpt() . ' <a title="go to article" href="' . get_permalink() . '" rel="nofollow" style="font-size: 0.85em;">[more]</a></p></li>';

		endwhile;
		wp_reset_query();
		echo '</ul>';
	endif;
}
}add_action('thesis_hook_after_post','custom_featured_posts');

Initial URL


Initial Description
VIA KRISTERELLA

Initial Title
FEATURED POSTS WITH THUMB NAILS

Initial Tags


Initial Language
PHP