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
- Row actions for custom post types?
- remove custom post type permalink
- Custom Post Type Archives by Year & Month?
- Saving Taxonomy Terms
- Filter by custom field in custom post type on admin page
- How can I remove the “Add New” button in my custom post type?
- Media library – Limit images to custom post type
- Set post date before 1970
- Sort search results by post type
- How to remove Filters from post admin page?
- Custom sortable columns ordered by meta-value?
- How to change “Draft” string for status of custom post type to “Unavailable”?
- Adding a drag and drop re-ordering from a custom post type default list [closed]
- WP_Query() show posts that end later than today
- How can I filter posts by post_parent in the admin?
- How do I filter the excerpt metabox description in admin?
- How do I Filter Custom Post Type by Custom Taxonomy in the newest WordPress RESTful API?
- Filter for “get_post_type_archive_link()”
- 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?
- How can I get next/ previous post links to order by a filter (by the last word of the title)?
- Uploading DB to server from local is not matching the post dates
- Filter by custom Field for Custom post type Admin Listing
- Most efficient way to search for values from CPT in Post content
- WP Admin default view mode for Custom Post Type
- post_type_link filter causes 404 on the CPT page it’s used on
- Remove wpautop from all posts/pages except my custom post type
- Remove date and category filters when editing custom post types
- Taxonomy terms with edit/filter link in wp-admin, in the list of custom posts
- Make the ‘all’ filter default instead of ‘mine’ in a custom post type
- Exclude custom function content from certain pages
- Title_save_pre – Simple problem that u know for sure
- 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
- How to sort CPT by custom meta value (date), and return posts month by month
- Ajax filter with custom taxonomies
- Filter posts with ajax form and checkboxes
- Date query for a custom meta field
- Multiple post types in archives (filter?)
- Image size filtering in Media uploader according to custom post type
- How to remove CPT comment feed from head?
- Unable to filter on field on edit.php page
- wp_query and comment_parent – select only posts with top level comments
- Highlight nav menu terms
- Help with issues on “Adding a Taxonomy Filter to Admin List for a Custom Post Type?”
- Want to filter only parent post in admin area
- 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
- Hooking into wp_export filter for custom post type [closed]
- Custom Post Row Actions
- Filters post in admin with dropdown select, custom post type
- How to make an archive page displaying posts in a date range
- Admin List Dynamic Heading
- What is better: Custom Fields vs Custom Taxonomies with Terms for perfomance, scalability and better user experience
- How can I add a column in the wp_list_table of the admin area?
- Archive filter disappears on no results?
- How to filter the description of a custom post type
- 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()
- Filter home_url for custom post type
- How to get Custom Post ID by adding filter to child theme’s function
- Add Content Exclusively to a Custom Post Type Feed
- Displaying custom posts only if custom meta box’s date is not expired
- Get the next event using date_query
- 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
- Filter custom post type archive page with custom taxonomies (categories) with AJAX
- How to filter out post type meta?
- Custom Post Type Events Archive Grouped By Month
- query_posts with a custom post type, a meta_query and sorting by post date?
- How to check if “is single” page
- Make a function to run only for CPTs
- Modifying date filter on admin page for custom post type to link to custom field
- Add html to cpt main page / admin edit.php
- register_taxonomy and register_post_type does not work [closed]
- Pre_get_posts filter overwrites all search functionality
- Filter categories of posts with checkboxes
- WooCommerce product search titles only
- How to detect filter in URL in Category page?
- Custom query to filter posts that have current post as a taxonomy [closed]
- Why is conditionally loading a custom plugin’s code only on a specific custom post type causing the site content to disappear?
- Setting proper query for multiple custom admin filters
- How to query custom post types posts filtered by multiple custom taxonomies through a form selection
- 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?
- Default sort on admin columns with meta date hides draft posts with empty date value
- Filtering WP_Query
- WP_Query most viewed posts, in multiple Post Types, last 30 days, excluding a specific taxonomy term
- Displaying custom taxonomy in the admin list of a custom post type
- How can I run this code once so that my generated post title doesn’t keep changing on publish/update?
- filter custom post type by meta key in dashboard
- Categories of custom taxonomy don’t show any posts