Yes you can. By hooking into the admin_menu
hook you can add sub menu pages, and they will appear
on hover by default. All you have to do is iterate the recent posts and add them one by one.
add_action('admin_menu', function () {
$args = array(
'post_type' => 'post',
'post_status' => 'publish',
'orderby' => 'post_date',
'sort_column' => 'post_date',
'sort_order' => 'asc',
'posts_per_page' => 10,
);
$arr = get_posts($args);
foreach ($arr as $item) {
add_submenu_page(
'edit.php',
$item->post_name,
'• ' . $item->post_title,
'read',
'post.php?post=" . $item->ID . "&action=edit',
''
);
}
});
Update:
I wrote a plugin for this. It also shows pages and custom post types. Hope that helps.
Related Posts:
- Mark menu item as current-menu-item for category
- How do I scope out why I have two “posts” menus in an admin?
- How to remove a column from the Posts page
- Apply the_title() filter in post & page title, but not in menu title
- Update post counts (published, draft, unattached) in admin interface
- How to display by default only published posts/pages in the admin area?
- display all posts in wordpress admin
- Add separator to admin submenu
- Help! Turn php link data into url OR hide edit link in post admin OR hide drafts for all users except admin?
- How to add post count to wp_nav_menu?
- using slug instead of ID in admin edit post url
- How to Load Scripts and CSS for Admins Only When Editing or Adding Posts
- Post Admin – Filter by posts without tags
- Adding Post Counts to Menu (Nav) Programmatically?
- Add javascript when post is published
- Add link on the top menu of the post table?
- Add a special filter link to All Posts in admin
- Make “Post published. View post” Open in a New Tab
- Overview with latest edited posts and pages
- Hiding by default specific post status on backend list?
- Custom colors for post rows based on post meta value
- prevent showing posts of an specific category in admin posts section
- Remove whitespace at the end of posts?
- Allow role to delete posts but block him the wp-admin
- how to only add a top-level admin menu without it creating a sub-level-menu
- Add filter-by-tag in the all posts admin console page
- What Defines What Category A Post Picks (if in multiple)
- Edit menu item title from edit page/post
- WordPress menu that shows all posts in a certain category like w3schools
- How do I add a custom body class to the admin area of a page?
- Remove the Edit button in posts for permalinks on certain user roles? WP 3.3
- Create dropdown list post
- Show info to author only
- Disable most recent & view all (TABS) on nav-menu.php
- Blog Posts in Custom Menu
- Get latest posts from WordPress site without header, menu and sidebar
- Is it possible to change post id for an already added menu item in WordPress?
- How to create a submenu that will navigate through different posts in the same page
- More then one menu items are assigned with “current-menu-item” class
- One menu for frontpage (one pager), and a different menu for posts
- Prevent additional top level categories but allow more children
- Publish post’s date is set to Nov 30 -0001
- Admin – create custom post status and display above table
- How to list recent posts in a wp nav menu?
- plugin to post from admin to flickr [closed]
- All Posts admin screen – show time underneath the ‘Date’?
- Get post ID in post/page edit area
- Using wp_list_pages() after calling query_posts()
- How to add category post count in main navigation menu [closed]
- disable Tab post on nav-menus page (Admin)
- How to remove specific tag from multiple posts?
- Add Labels to Admin Menu ( How To )
- How to detect when admin user is on the All Posts page?
- All posts display default index.html
- How can I add a box to edit Order on a regular post?
- Filtering posts on Post Administration Page by Week Number instead of by Month
- How to add the time of a post to the list of posts on the administration page?
- WordPress Menu options in the Admin: Posts for the dropdowns
- How to add convenient buttons for new custom post statuses
- WordPress post filter menu
- Un-highlight Blog Menu Item when Category Menu Item is Selected
- I don’t want the complete article to show on homepage
- Get current post’s nav menu name (term name)
- Programmatically add posts from specific category to menu
- wp_list_categories() Exclude All Categories Except One
- How to output all taxonomy links from a custom post type in a menu?
- Featured Images most often doesnt appear
- Cannot create new posts or upload images using media manager
- Menu does not foward to the linked posts
- How we can create menu from Appearance > Menu and use as a add-submenu-page for admin menu?
- Menu Items disappearing/being empty on save or post edit
- I want to add the 10 most recent posts under a parent category on the main menu
- How to add class to specific navbar item when post parent category is in specific category
- Put page on Archived statut after end of publication date
- Add view to admin menu to filter for specific criteria ( If post is child of specific Parent )
- Using WP page password protection as defacto login
- I lost the link to my posts in my menu bar
- Ajax the create and edit post form into lightbox and get results
- Keep highlight on menu item with post pages
- Is there a global page/post/product/anything ID?
- Creating widget – ask for selecting a post in the admin panel
- issue in wordpress auto delete post and redirect to another 1
- Page and Posts loading as index page? Not loading the content
- Add custom class to existing menu items from custom meta
- Hiding menu on mobile only when viewing posts?
- Admin menu post type
- How to change the publishing date of each posts?
- “Current” class on a singular page menu item with custom post types?
- Load Pages Menu in single.php
- Is possible to create a custom link that creates a post that’s already categorized?
- Why is $_POST Empty in Profile Edit Admin?
- WordPress Admin Tables in Post View
- Choose options via url
- Admin moderates ALL comments (including post author)
- How do i put a dropdown list of ALL my post in the sidebar menu?
- How to make posts appear under pages
- Adding a post to a page
- Post Format Status [closed]
- Dynamic Menu Item
- How to remove category and other tags from posts page