How to list recent posts in a wp nav menu?
What about checking the ID value of each menu item like the following: if( $item->ID === 45): // ADD THIS MENU-ITEM ID CHECK // Query the lasts ten category posts $category_ten_last_posts = array( ‘posts_per_page’ => 11, ‘category_name’ => ‘mamba’, ‘orderby’ => ‘date’, ‘order’ => ‘DESC’ ); $posts = get_posts( $category_ten_last_posts ); foreach ( $posts as … Read more