Alright, You can just hook into the filter pre_get_posts and check is_admin.
Put this in your theme or plugin:
function wpse_81939_post_types_admin_order( $wp_query ) {
if (is_admin()) {
// Get the post type from the query
$post_type = $wp_query->query['post_type'];
if ( $post_type == 'Videos') {
$wp_query->set('orderby', 'date');
$wp_query->set('order', 'DESC');
}
}
}
add_filter('pre_get_posts', 'wpse_81939_post_types_admin_order');
I also would shange the post_type “Videos” to lowercase like “video”.
Related Posts:
- How to order posts of a custom post type by date DESC in dashboard Admin?
- single-{$post_type}-{slug}.php for custom post types
- Filter by custom field in custom post type on admin page
- How can I remove the “Add New” button in my custom post type?
- Set post date before 1970
- Adding a drag and drop re-ordering from a custom post type default list [closed]
- How to correctly get post type in a the_title filter
- How to add a CSS class to every image in a Custom Post Type
- Best way to filter featured image text for a custom post type?
- Uploading DB to server from local is not matching the post dates
- WP Admin default view mode for Custom Post Type
- post_type_link filter causes 404 on the CPT page it’s used on
- Make the ‘all’ filter default instead of ‘mine’ in a custom post type
- Exclude custom function content from certain pages
- Permalinks using event date (year & month) instead of publication date
- Filter get_categories() for taxonomy term in WordPress
- Debug output during filter execution doesn’t work
- Filter posts with ajax form and checkboxes
- Unable to filter on field on edit.php page
- Help with issues on “Adding a Taxonomy Filter to Admin List for a Custom Post Type?”
- Adding posts of custom type into the main feed
- Used with meta_query in query_posts works slowly
- Custom Post Types – How to include custom fields
- How to make an archive page displaying posts in a date range
- What is better: Custom Fields vs Custom Taxonomies with Terms for perfomance, scalability and better user experience
- Query current and future events, ordered by begin date
- Remove “Get Shortlink” button in admin of custom post type
- Add $more_link_text parameter to the_excerpt()
- Custom Taxonomy breaking pages permalinks
- How do I set the link in the Custom Post Type admin menu?
- get_queried_object error How to show post count by month in the taxonomy page
- Custom Post Type Events Archive Grouped By Month
- query_posts with a custom post type, a meta_query and sorting by post date?
- Modifying date filter on admin page for custom post type to link to custom field
- Pre_get_posts filter overwrites all search functionality
- Filter categories of posts with checkboxes
- WooCommerce product search titles only
- Custom query to filter posts that have current post as a taxonomy [closed]
- Setting proper query for multiple custom admin filters
- Append date to custom post type url slug
- Genesis filterable portfolio isotope [closed]
- How can I see a list of my Custom Post Types of the last term I was in?
- filter custom post type by meta key in dashboard
- Categories of custom taxonomy don’t show any posts
- How to add a post slug to a url?
- WordPress sort search results by custom order
- How to filter wp_list_categories output with some custom post type meta query?
- creat filter with wp_query
- Post count by month of taxonmy term
- How can I made custom taxonomies relationship?
- WooCommerce sort products by the actual product width(not the shipping width)
- Meta Query posts not showing on ending date of custom field
- Filtering posts list table
- Use the same date-based permalink structure for all post types
- Categories filtering in new post
- How does the filter post_updated_messages work?
- Create new custom post and post category of same name
- Filter posts by tax (dropdown) and meta value
- How do I add custom HTML to the content of an archive page’s posts?
- Only show posts with a specific term of an associated taxonomy in a custom post type archive
- Sort custom post type by most current date picker
- Modifying WP_Title For Custom Post Type
- Filtering the_content, but still need to display the unfiltered content inside filter
- Catch and display error on save_post action
- Problem with date comparison for custom fields
- Using global $post; with custom post types
- Is possible register two archive pages for single custom post type?
- custom filtering admin columns
- How to sort WP_Query by a custom text field (written as a date dd/mm/yyyy)
- Ajax Post Filter | Split Taxonomy Into minPrice & maxPrice
- Custom Permalink For Custom Post Type – Working Fine But Broken For Pagination
- Query filter by value in meta_value array
- WP Admin Dropdown List Filter for custom (ACF) field on custom post type(s)
- Display post count for a specific month
- Display category filters for custom post type when category is shared by multiple post types
- Create Post Types from a XML url (Real Estate website)
- get_queried_object not work in taxonomy page
- Post Click Redirect to Custom URL instead of Single Post Page
- Keep br tags from stripping
- Add filter button to custom post type in admin area
- Filter between Custom Posts depending on meta_value
- Adding Information To All Posts Screen
- Dropdown switching subcategories portfolio
- Filter Content on all Post Types
- Get month and day from a Date Picker custom field
- Sorting on Taxonomy in archive page
- How to get past and upcoming post by defining date in custom field?
- Filter custom post type by tags
- Custom Search Template for Custom Post Types
- Change custom post status to draft before today
- How to save an integer as taxonomy term?
- Create a list of months based posts
- Rewrite a filter as shortcode (or something like that) to use anywhere in CPT
- add_filter > posts_where works partially
- Is it possible to specify a time interval (from, to) in ACF with date picker, or other custom field?
- Order Wp Query by earliest of 3 dates meta query
- When Attempting to Filter Plugin Generated Content Using Filter post_type_link, Permalinks Are Not Modified
- Change CPT Edit Target Link for Admin List
- Add Custom Taxonomy Terms as CSS Classes for CPT Posts in an Elementor Loop Item Template
- Add post id to url instead of WordPress default -2 suffix