I'm trying to sort a custom post type in ascending order (instead of the default descending). Registering the post type like so:
function codex_custom_init() {
register_post_type(
'calendar', array(
'labels' => array('name' => __( 'Calendar' ), 'singular_name' => __( 'Calendar' ) ),
'public' => true,
'has_archive' => true,
'rewrite' => array('slug' => 'calendar'),
'supports' => array('title', 'editor', 'thumbnail'),
'orderby' => 'date',
'order' => 'ASC'
)
);
}
But for some reason 'order' => 'ASC'
isn't working? It's probably something I'm doing wrong, but is there anyway of achieving this?