How to order posts of a custom post type by date DESC in dashboard Admin?
Question
I created a new post type named “Video”.
When I create post for the post type, posts is ordered by title ASC
.
Is it possible to order posts by date DESC please ?
register_post_type('Videos', array(
'labels' => array(
'name' => _x('Videos', 'post type general name'),
'singular_name' => _x('Video', 'post type singular name'),
'add_new' => _x('Ajouter', 'Video'),
'add_new_item' => __('Ajouter une video'),
'edit_item' => __('Éditer une video'),
'new_item' => __('Nouvelle video'),
'view_item' => __('Voir le lien de la video'),
//'search_items' => __(' Video'),
'menu_name' => 'Video'
),
'public' => true,
'show_ui' => true,
'capability_type' => 'post',
'hierarchical' => true,
'rewrite' => array('slug' => 'video'),
'query_var' => true,
'supports' => array(
'title',
'editor' => false,
'excerpt' => false,
'trackbacks' => false,
'custom-fields',
'comments' => false,
'revisions' => false,
'thumbnail' => false,
'author' => false,
'page-attributes' => false,
),
'taxonomies' => array('post_tag')
)
);
0
custom-post-types, date, filters
11 years
2013-01-17T03:00:33-05:00
2013-01-17T03:00:33-05:00 0 Answers
79 views
0
Leave an answer