Add Recent Posts to Nav Menu as Dropdown

This document is deprecated! The information on this page refers to a Thesis version that is now obsolete. Please visit the User’s Guide home page for current documentation.

Place this code in custom_functions.php (change 10 to the number of recent posts you want to include):

function posts_nav() {
	echo '<li class="tab tab-recent"><a href="">Blog</a><ul>';
	wp_get_archives('title_li=&type=postbypost&limit=10');
	echo '</ul></li>';
}
add_action('thesis_hook_last_nav_item','posts_nav');