===== Show 5 Recent Blog Posts on Static Front Page ===== To have a separate template for your front page, you need a front-page.php file. In that file, your normal wordpress loop will be in there. Underneath the WordPress loop you can do a custom query using wp_query. In the [[http://codex.wordpress.org/Class_Reference/WP_Query#Usage|WordPress Codex for WP_Query]] you can find the usage examples. Copy the code below and use CSS classes to style the look. The code below will display the 5 recent blog postings, the title will be an h4 headline that hyperlinks to the post itself. The excerpt is in paragraph form, with a special span class in case you need to change it's typography css.

Recent Blog Posts

5 ) ); // The Loop while ( $the_query->have_posts() ) : $the_query->the_post(); echo ''; echo '

'; the_title(); echo '

'; echo '
'; echo ''; the_excerpt(); echo ''; endwhile; // Reset Post Data wp_reset_postdata(); ?>
=== Alternative Bullet List === There's an alternative to just grab at bulleted list of the recent 5 posts from the archives. Use the code snippet below in your WordPress template. And of course you can use CSS to style the **recentposts** id or your own preferred class added to the UL tag.