已使用但不起作用:
$my_query = new WP_Query( array(
\'post_type\' => \'businesslistings\',
\'post_status\' => \'publish\',
\'orderby\' => get_query_var(\'orderby\'), // will return orderby query string variable
\'order\' => \'$var\',
\'paged\' => get_query_var(\'paged\'),
));