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
- Get the Current Page Number
- Stop WP from creating “Sample Page” and “Hello World!” post
- How to display by default only published posts/pages in the admin area?
- How to Check if a Page Exists by URL?
- Restore contents of deleted user
- Display posts by tag on page
- WordPress automatic and permanent page
- Can I change a post to a page by changing it’s type?
- Add a custom option to a page in backend
- Creating new page with pre-defined parent page
- Populating a page with content from post custom fields
- What Defines What Category A Post Picks (if in multiple)
- disable column on post and user list
- Can a page_id and a post_id be same?
- How can I display widget in a Page or Post?
- Differentiate between posts and pages in search results
- Getting a 404 error when clicking edit page
- Restrict post navigation to current sub menu
- Create dropdown list post
- get_next_post() and get_previous_post() return wrong posts
- Can I use images as anchor tags with
- Create posts under certain page
- Should I use posts or pages in this scenario?
- Why aren’t my posts/pages showing up in my WordPress Theme?
- How to Restrict Previous & Next Post Link to Posts of Same Category?
- Switch to page template when using post permalink
- How to handle broken links created by permalink/slug changes?
- Get Page ID of blog homepage
- Hooking into the post editing screen for an existing page only
- Automatically create a new page daily with last three posts
- User Selectable Delete of Pages
- How to get ID of the page included with get_page()?
- Posts vs Pages and categories
- is_page() and is_page_template() not being differentiated
- How can I list posts by author?
- How to create a “latest news” page showing a list of posts from blog category
- How do you search for a post or page with a certain url on the WordPress admin panel?
- How to create a page that shows the last 10 posts?
- $_GET parametters not working in an specific template
- the_content() Not Grabbing All Content
- Display Featured Posts Grid on Static Page (Gazette)
- Having pages after specifying post_type post
- Unabled to Change Permalinks – Even Using the “Edit” (Resets to Original Permalink on “Update”)
- HTML Inside of Shortcode Breaks Shortcode Output
- Organization of time insensitive content
- Adding if statement into the_content()
- Archieve page, Advertisement Every 3 Posts
- How to output all taxonomy links from a custom post type in a menu?
- Separate blog and reviews categories
- Creating a redirect option for current page url
- I want to add another search box on posts page in dashboard
- Menu does not foward to the linked posts
- Blog posts pagination not working
- I want to add the 10 most recent posts under a parent category on the main menu
- Change the size of the featured image for post?
- WordPress: Develop multiple posts with different data
- How do I scope out why I have two “posts” menus in an admin?
- How can I order these pages in this navigation bar on this old wordpress theme?
- Blocked posts in network tab
- How do I customize the post page
- Clicking on a Post takes 10+ seconds for the server to respond, Pages will respond immediately
- Page with Category Returning 1
- Custom permalink for wordpress page / post
- How to add post under particular pages? Like website.com/page1/post1
- Unable to remove page from primary menu
- Keep highlight on menu item with post pages
- Posts in Page – How to customize the URL?
- Hiding menu on mobile only when viewing posts?
- Page not loading content – Body archive – page
- Using Post ID and Page ID in same function
- Display Post by menu order
- How to display a paginated list of posts from one category on a page? [duplicate]
- Cant retrieve $_POST inside page, just header
- How do i put a dropdown list of ALL my post in the sidebar menu?
- Redirecting posts in WordPress to a specific page
- Wrap div-tag around posts in page
- When and how will php code in a user made WordPress page be executed?
- Post data returning null [closed]
- Edit Page button is gone