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?
- Filter hierarchical custom post type admin page by parent, and include children & grandchildren
- Sort and filter custom post type posts by custom taxonomy
- Versioned Custom Post Type (Not the same as revisions)
- Loop filtering Custom Post Types and/or Categories
- search suggest – filter post type
- the_content filter on some post types only not working
- Meta Query posts not showing on ending date of custom field
- Filtering posts list table
- Custom filter function not working with Custom post type
- Filter Posts from the Main Query
- Use the same date-based permalink structure for all post types
- Categories filtering in new post
- How to use manage_$post_type_posts_columns with underscore in post type?
- How does the filter post_updated_messages work?
- Search filter triggered & sort by custom post type
- Order post by date with ACF
- How can I add a filter to a particular post format?
- Is there any way to get list of all possible filter hooks for all post types?
- Can I display custom post types in home.php or need page template?
- Create new custom post and post category of same name
- wordpress remove views from action links in a custom post
- wp_insert_post wrong post type [closed]
- Filter posts by tax (dropdown) and meta value
- How can I remove filters from custom post types?
- sortable columns for multiple custom post types not working
- I need to add a filter to prepend the term ‘National – ‘ to the post title if the post is tagged to multiple states
- 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
- REST filters only firing when I have a param set
- Sort custom post type by most current date picker
- I am trying to get cutom post cout by month of current taxonmy term
- Problem with Apply Filters on URL in meta box filed of custom port type
- how to retain the ability to modify the post slug after applying a post_type_link filter?
- How do I show a link or ‘Read More’ button on a custom field excerpt when it is less than the word limit
- How to filter url on post submission?
- How to display a WordPress Custom Field only on a specific day of the week?
- Modifying WP_Title For Custom Post Type
- Filtering the_content, but still need to display the unfiltered content inside filter
- WordPress giving a 404 page when passing a year argument different than the current year
- Using WP meta query to show custom post types by a start and finish date
- Change Custom Post Type singular_name through function/filter
- Modify a plugin function output from another plugin
- Custom Taxonomy Filter Issues
- Why does my URL keep returning 404 error code?
- Catch and display error on save_post action
- show most viewed posts of last days by link?
- Filter search posts by post meta?
- Modifying search results based on post_type
- Problem with date comparison for custom fields
- Using global $post; with custom post types
- Remove filter and view options from custom post type edit screen
- Is possible register two archive pages for single custom post type?
- Display custom post front end filter by ACF equals current user
- conditional filter
- 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
- Best way to fix bad count on All | Mine | Published
- How to set post date in post_type so that it’s same as latest post in category
- WP Admin Dropdown List Filter for custom (ACF) field on custom post type(s)
- Display post count for a specific month
- Is there any filter to add a custom attribute to the tag in admin panel?
- Display category filters for custom post type when category is shared by multiple post types
- Store a value in global scope after init hook is fired
- Filter in Custom post type to find the parent post
- Dynamic page for nav items used as filters
- Create Post Types from a XML url (Real Estate website)
- Compare ACF Date field to today or yesterday
- Filter posts by their related field’s custom field
- get_queried_object not work in taxonomy page
- Post Click Redirect to Custom URL instead of Single Post Page
- How can I add image sizes for a specific custom post type?
- Add content to wordpress edit.php page
- How to use multiple orderby conditions on query search results? (orderby one post type, relevance)
- add_rewrite_tag broke permalinks that doesn’t use that specific tag
- pricefilter without WooCommerce
- Output all terms slugs for a loop filter
- Insert custom taxonomy into category query
- filter rest api post by a acf filed
- Group Custom Posts Types in a Relation field of ACF
- Help Adding filter to Add Media button for custom post type