Field :: orderby

Parameters

label
(string)
Default: None
format
(string) 'select', 'multi-select', 'checkbox', 'radio', 'text', 'hidden', 'number', 'color', 'url', 'email', 'tel', 'date', 'datetime', 'time', 'week'
Default: select
values
(array)
Default: array('ID' => 'ID', 'author' => 'Author', 'title' => 'Title', 'date' => 'Date', 'modified' => 'Modified', 'parent' => 'Parent ID', 'rand' => 'Random', 'comment_count' => 'Comment Count', 'menu_order' => 'Menu Order')
orderby_values
(array) An array of orderby values, each storing an array of up to three sub-parameters: 'label', 'meta_key', and 'orderby'
Context: Can be used instead of 'values'. Necessary for ordering by meta_keys
Default: None
default
(string)
Default: None