Filter: tcp sort query

Description

Allows to sort the query for TCP shortcodes and Custom post type widgets.

Parameters

$wp_query
(Object) Query object to sort. $wp_query->posts is the array of posts to sort.
$order_type
(String) The name of sorting type to execute over the array of posts.
$order_desc
(String) Possible values are desc/asc.

Example

See an example in the page how to add sorting methods.

Change Log

Since 1.1

Related

tcp_sorting_fields | tcp_sort_main_loop