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
- Remove Categories / Tags From Admin Menu
- 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?
- Set Default Listing “View” in Admin
- display all posts in wordpress admin
- Add separator to admin submenu
- Sends out email to admin
- Can I force a metabox to be in one column?
- Add a new post status in the post progression
- Help! Turn php link data into url OR hide edit link in post admin OR hide drafts for all users except admin?
- Modifying admin sidebar contents to show pending posts indicator
- How to add post count to wp_nav_menu?
- Any way to create a revision of a post ONLY with a new button in the Meta Box?
- using slug instead of ID in admin edit post url
- How to Load Scripts and CSS for Admins Only When Editing or Adding Posts
- Add “Post Options” for new wordpress post
- Post Admin – Filter by posts without tags
- Adding Post Counts to Menu (Nav) Programmatically?
- Add javascript when post is published
- Why does the_date work in the first custom column, but not in the second, in a series of customized Posts columns?
- Add link on the top menu of the post table?
- Add a special filter link to All Posts in admin
- Adding a Nav menu to post admin
- which action to hook to in order to perform post-publish action
- Make “Post published. View post” Open in a New Tab
- Is it possible to show a different WP menu when using password protected pages?
- 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
- How to add an admin function only to posts, not pages?
- 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
- Is there a way to change the color of a row in Post Administration based on the type of post?
- 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
- How to get a nofication when post submitted
- 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?
- Adding a text link under the post title in the lists of posts
- Is it possible to change the admin posts per page view?
- Remove the Edit button in posts for permalinks on certain user roles? WP 3.3
- Change default Posts page
- Sidebar links for different pages
- 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
- Disable inline_edit() on edit.php
- 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
- Change target of view link in admin
- One menu for frontpage (one pager), and a different menu for posts
- Prevent additional top level categories but allow more children
- WP Admin register taxonomy and post type performance
- 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()
- Show posts count for Categories and Tags in wp_nav_menu
- How to add category post count in main navigation menu [closed]
- disable Tab post on nav-menus page (Admin)
- How to Use index.php file for “Blog” Page And this is Not a Home Page
- 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?
- How can I list posts by author?
- 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
- Deleted a user with administrator rights. Now all the data/content/images are lost. how to recover them back
- WordPress post filter menu
- Un-highlight Blog Menu Item when Category Menu Item is Selected
- How to get submenu of admin menu?
- 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
- After 3.5.1. upgrade, posts appearing on Site yet *NOT* in WP admin!
- Send email to admin with post author
- wp_list_categories() Exclude All Categories Except One
- How to output all taxonomy links from a custom post type in a menu?
- In admin panel, use a form to create a post?
- Making a new post visible on a specific page
- WordPress – When visiting a `single post/ single.php` my category menu item link becomes active
- Add checkbox in admin post list – show checked post in widget
- Featured Images most often doesnt appear