You can introduce a js file exclusively for admin panel doing this in functions.php:
//Admin JS
add_action('admin_init', 'custom_admin_js');
function custom_admin_js() {
wp_register_script( 'admin-js', get_stylesheet_directory_uri() . '/js/admin.js' );
wp_enqueue_script( 'admin-js' );
}
And in admin.js file:
jQuery(document).ready(function($) {
$('*[data-type="tabs-panel-posttype-page-most-recent"]').fadeOut();
$('*[data-type="page-all"]').fadeOut();
$('*[data-type="tabs-panel-posttype-page-search"]').trigger("click");
});
Related Posts:
- Page and Posts loading as index page? Not loading the content
- Apply the_title() filter in post & page title, but not in menu title
- Adding Post Counts to Menu (Nav) Programmatically?
- Is it possible to show a different WP menu when using password protected pages?
- Edit menu item title from edit page/post
- How to create a submenu that will navigate through different posts in the same page
- One menu for frontpage (one pager), and a different menu for posts
- Using wp_list_pages() after calling query_posts()
- Show posts count for Categories and Tags in wp_nav_menu
- disable Tab post on nav-menus page (Admin)
- Get current post’s nav menu name (term name)
- How to show next/prev link, when it’s not active?
- Making a new post visible on a specific page
- Go back to the exact post page number
- Parent menu item does not display posts when I add the sub-items
- Using WP page password protection as defacto login
- I lost the link to my posts in my menu bar
- Call posts of particular category in a page
- Add custom class to existing menu items from custom meta
- How to make posts appear under pages
- Adding a post to a page
- how to limit edit_form_after_title hook to page and post edit only?
- Strategy for handling hierarchical pages with empty parent content
- How to add post count to wp_nav_menu?
- Create custom page in WooCommerce
- Change WordPress post-state in Admin Area
- Navigation link to specific user page
- how to show all post in my page-grid.php template page
- eBooks download website, page or post?
- Can I hide a specific post from latest posts page?
- Hide add new page button
- How to show post(excerpt) from specific category on wp page?
- How To Keep Posts from Being Displayed Two or More Times on My Homepage? [closed]
- How to restore permanently trash page? [closed]
- Mark menu item as current-menu-item for category
- Dashboard :10 Last draft page and 10 last pending review page (metabox)
- page.php showing loop of posts and not page content
- remove older posts link [closed]
- How to include the latest post of a specific category on a matching page
- post categories
- Integrate OpenStreetMap on WordPress
- What’s the best way to render Visual Composer in posts, not pages?
- Start post pagination at 0 instead of 1
- How to add category post count in main navigation menu [closed]
- Multiple Loops Breaking Pages
- “about us”, ” contact” sections should be article(post) or page in the simple small Business website?
- Restrict the_post-navigation to same category?
- Proper way of establishing custom landing pages in WordPress
- Admin – no Featured image choice in create new/page|post
- Why won’t pagination work?
- Is there a way to add the list of recent posts into the admin sub menu on hover?
- How to add some html formated text to every new post in WordPress
- Output Post with ACF Fields into other Post
- Deleted a user with administrator rights. Now all the data/content/images are lost. how to recover them back
- Posts and Pages: 404 Page not found
- List all posts, pages and custom post types in admin
- Are post, page and category IDs unique to each other?
- Create a frontpage.php and static page template
- How can I add a page that shows posts from a single category?
- Prevent 404 of Author pages without posts
- Cannot publish posts, but can create new pages
- Can I restore restore content from old Worpress site to a new Worpress site from an archive
- How Do I Redirect WordPress Pages but not posts?
- Custom Fields – How to get the list of a specific active widget each time it rendered
- How to show only homepage in google results instead of privacy, contact pages
- Google indexing duplicate page content with Page #### in post title and /page-2 in permalink instead of the ones I set
- Show post count in custom taxonomy page
- How to show WP admin edit page within template page/post?
- Display all tags even if they are not assigned to a post
- Automatic Table of contents with categories and posts
- Very weird behaviour after removing WP pages
- Category URL to use same string as Post URL Permalink
- How to add navigation arrows to manually slide through posts?
- Posts on Sidebar only
- How to add content to the menu
- display content in multiple columns
- Output wp_link_pages as raw url
- Hide Admin posts & pages in Dashboard
- structure of posts and pages
- How to add class and span to
- Add wp-link-pages to post
- Allow users to create their own page/s
- How to arrange different post categories in template
- How do I paginate posts page with $wpdb?
- How to Post to Specific Pages?
- associate posts to a page
- Woocommerce – custom post type of checkout page
- How to have more post in a page than in your home page
- Adding Count Post in Page
- ‘get_previous_post’ in same category returning (!empty) when no previous post in category exists
- How can I get the first post THIS SAME CATEGORY?
- change page name on page list
- how can i get the page_ID in nav li [closed]
- How can I use wp_after_insert_post with $current_screen?
- Automatically search and replace link in content (pages/posts)?
- How to remove category and other tags from posts page
- How to remove slug from CPT correctly?
- How to display breadcrumb on category?
- When inserting media file in a post or page, show file name under the thumbnail
- Parameter for pagination posts_pagination