Add Recent Posts to Nav Menu as Dropdown

Applies to Version(s): Thesis 1

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');