Skip to content

Commit

Permalink
Merge pull request welaika#114 from Arkham/fix-query-order
Browse files Browse the repository at this point in the history
  • Loading branch information
Ju Liu committed Nov 21, 2012
2 parents dd48f89 + 5585b47 commit d5b401c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wordless/helpers/query_helper.php
Expand Up @@ -25,7 +25,7 @@ class QueryHelper {
*
* @ingroup helperfunc
*/
function latest_posts_of_type($type, $limit = -1, $order = 'date', $ord = 'ASC') {
function latest_posts_of_type($type, $limit = -1, $order = 'date', $ord = 'DESC') {
$wp_query = new WP_Query(array(
"posts_per_page" => $limit,
"post_type" => $type,
Expand Down Expand Up @@ -77,7 +77,7 @@ function latest_post_of_type($type, $order = 'date') {
*
* @ingroup helperfunc
*/
function latest_posts_of_category($category, $limit, $offset = 0, $post_type = 'post', $taxonomy = 'category', $order = 'date', $ord = 'ASC') {
function latest_posts_of_category($category, $limit, $offset = 0, $post_type = 'post', $taxonomy = 'category', $order = 'date', $ord = 'DESC') {
$wp_query = new WP_Query(array(
'posts_per_page' => $limit,
'tax_query' => array(
Expand Down

0 comments on commit d5b401c

Please sign in to comment.