i have some posts categories as element of a main navigation menu, and i’d like to display the ten lasts posts of this category as sub menu.
ex: Category1
Lastpost1
Lastpost2
The main menu is build in the admin panel, and i’m wondering if there is a hook or something to achieve that automatically.
I know how to hardcode that, but i’d like to keep using the cool menu edition from admin panel.
any ideas?
I finally achieve it with this code in function.php
This will display as sub menu, the ten last posts of a category placed as menu item or sub menu item in admin panel.
This code is highly inspired from this: http://codeseekah.com/2012/03/05/list-all-posts-in-wordpress-navigation-menu/