Skip to content

class WP_Query {}

List of WP_Query {} arguments

ORDER BY ID ASC

$args = array(
    'order' => 'ASC',
    'orderby' => 'ID',
);

ORDER BY ID DESC

$args = array(
    'order' => 'DESC',
    'orderby' => 'ID',
);