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
- WordPress Query Posts From Category Post on Static Page
- How to create a “latest news” page showing a list of posts from blog category
- confused about wp_list_pages() function – how to display selected top pages with all their subpages
- WordPress Menu options in the Admin: Posts for the dropdowns
- Is there a way to add the list of recent posts into the admin sub menu on hover?
- Automatically add images to a menu
- How do you search for a post or page with a certain url on the WordPress admin panel?
- How to add some html formated text to every new post in WordPress
- Navigate through the posts using keyboard arrows
- Intercept page request and add value to it
- WordPress 302 Redirect to Random Product/Post/Page
- Output Post with ACF Fields into other Post
- How to create a page that shows the last 10 posts?
- Deleted a user with administrator rights. Now all the data/content/images are lost. how to recover them back
- $_GET parametters not working in an specific template
- New Posts and Pages Won’t Save
- My Custom Post Type Still Using index.php
- get_children returns older images
- Posts and Pages: 404 Page not found
- WordPress pagination and Post Navigation not working on home page
- WordPress post filter menu
- the_content() Not Grabbing All Content
- Un-highlight Blog Menu Item when Category Menu Item is Selected
- Display Featured Posts Grid on Static Page (Gazette)
- Detecting current page from class method
- Having pages after specifying post_type post
- Unabled to Change Permalinks – Even Using the “Edit” (Resets to Original Permalink on “Update”)
- List all posts, pages and custom post types in admin
- Make ‘blog’ page show content as well as posts underneath it
- I don’t want the complete article to show on homepage
- Post/page title to permalink transformation – what is behind the scenes?
- Change Author Name to Sitename on Frontend
- Would a “hub” page work better as a page or a post?
- Display on page every post in blog WITH comments
- Are post, page and category IDs unique to each other?
- How to get main menu only with wp_nav_menu
- Showing recent post of category in page
- Programmatically add posts from specific category to menu
- HTML Inside of Shortcode Breaks Shortcode Output
- wp_list_pages Hierarchical Help
- Add pages content to startpage through custom menu
- Add Text Domain To Post Navigation
- Insert Shortcode exactly at the end of the content
- When and how will php code in a user made WordPress page be executed?
- How can I get the first post THIS SAME CATEGORY?
- CSS – Change height of Storefront / WooCommerce product categories, but not products
- How to find the page of specific post?
- WordPress Page Column Problem [closed]
- The page that displays Posts on homepage
- How to have 2 posting pages on a blog
- Post data returning null [closed]
- change page name on page list
- how can i get the page_ID in nav li [closed]
- Cannot Create a new Post [closed]
- What function does the loop of displaying posts?
- How can I use wp_after_insert_post with $current_screen?
- Dynamic Menu Item
- wordpress category Description not allowed tag
- Header and Footer options in pages and posts
- Show a page counter for pagination
- Blog posts are not appearing as subs of Blog Page
- Automatically search and replace link in content (pages/posts)?
- How can I merge a several related posts into one post?
- How to remove category and other tags from posts page
- How to remove slug from CPT correctly?
- Edit Page button is gone
- I want the Title of page/post to show up topmost when reading the post/page
- Blog Posts Work in Preview, But Are Not Visible on the Live Page – READ MORE u003cspan aria-hidden=’true’u003e→u003c/spanu003e Error
- Images and menu links disapearing after saving
- How to display breadcrumb on category?
- When inserting media file in a post or page, show file name under the thumbnail
- Hide page title on dedicated posts page
- It tells me that I exceeded the maximum number of executions when trying to publish content
- Menu for all posts from multiple categories
- Parameter for pagination posts_pagination
- Is there a way to eliminate flyout menus when adding a post?
- WordPress menu disappears in category pages
- Menu item on a category
- Issue Copying Posts and Pages from One WordPress Site to Another