Custom Sort Order (Staff Order)
WordPress Plugin Staff List – Custom Sort Order
A custom sorting is a convenient way to overwrite the built-in options. It requires adding one or more shortcode parameters.
Custom sort options.
Custom sort options are created by adding shortcode parameters.
- order
- c-sort
- d-sort
- c-sort-order
- d-sort-order
order
Can be used to change the sorting direction of the built-in sort option (Post Title or Sort Text).
- Allowed values: DESC or ASC
- ASC is a default. Shortcode parameter is not needed to sort in ascending order.
- DESC. Records are sorted in alphabetical, descending order by content of the field selected as Sort Option.
c-sort
To create custom sort order, you can add shortcode parameter c-sort.
- Allowed values: post-title, sort-text or Fx (F+ field number).
- Only field type Single Line Text can be used as Fx c-sort parameter.
- Records are sorted in alphabetical, ascending order by content of the selected field.
- Descending sort parameter is also available. See: c-sort-order.
Sorting by multiple columns (fields).
d-sort
By combining c-sort with d-sort, you can order a result set by multiple columns.
- d-sort can be only added when c-sort option is present.
- Ordering sequence: records are ordered by c-sort and next by d-sort.
- d-sort allowed values: post-title or sort-text.
c-sort-order
- Allowed values: DESC or ASC.
- ASC is a default. Shortcode parameter is not needed to sort in ascending order.
- Can be combined only with c-sort.
d-sort-order
- Allowed values: DESC or ASC.
- ASC is a default. Shortcode parameter is not needed to sort in ascending order.
- Can be combined only with d-sort.
14294