Add Recent Blog Posts To Thesis Navigation Menu As Dropdown

Thesis navigation menu provides a lot of customization features. When we add a new post in WordPress it shows up in the blog page automatically. But, sometimes you may want to include the recent blog post to be added to thesis navigation menu as a dropdown menu item.

To add recent posts to thesis navigation menu as a dropdown, you just need to place the following code in functions.php:

function custom_nav() {
echo '<li class="tab tab-recent"><a href="'.get_home_url().'">My Blog</a><ul>';
echo '</ul></li>';
add_action('thesis_hook_last_nav_item',' custom_nav ');

That’s all required. And you will have your recent blog posts showing under thesis navigation menu.

Divi WordPress Theme