qa
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
2 changed files
with
7 additions
and
7 deletions
| ... | @@ -35,9 +35,8 @@ function pull_posts_for_post_list( $data ) { | ... | @@ -35,9 +35,8 @@ function pull_posts_for_post_list( $data ) { |
| 35 | 'category' => $categories, | 35 | 'category' => $categories, |
| 36 | 'numberposts' => $numberposts, | 36 | 'numberposts' => $numberposts, |
| 37 | 'suppress_filters' => false, | 37 | 'suppress_filters' => false, |
| 38 | 38 | 'orderby' => 'menu_order', | |
| 39 | 'orderby' => 'menu_order', | 39 | 'order' => 'ASC' |
| 40 | 'order' => 'DESC' | ||
| 41 | 40 | ||
| 42 | ) ); | 41 | ) ); |
| 43 | } else { | 42 | } else { |
| ... | @@ -47,7 +46,7 @@ function pull_posts_for_post_list( $data ) { | ... | @@ -47,7 +46,7 @@ function pull_posts_for_post_list( $data ) { |
| 47 | 'category_not_in'=>$exclude, | 46 | 'category_not_in'=>$exclude, |
| 48 | 'exclude' => $exclude_posts, | 47 | 'exclude' => $exclude_posts, |
| 49 | 'orderby' => 'menu_order', | 48 | 'orderby' => 'menu_order', |
| 50 | 'order' => 'DESC' | 49 | 'order' => 'ASC' |
| 51 | ) ); | 50 | ) ); |
| 52 | } | 51 | } |
| 53 | 52 | ||
| ... | @@ -84,13 +83,15 @@ function pull_posts_for_post_list( $data ) { | ... | @@ -84,13 +83,15 @@ function pull_posts_for_post_list( $data ) { |
| 84 | $posts = get_posts( array( | 83 | $posts = get_posts( array( |
| 85 | 'category' => $categories, | 84 | 'category' => $categories, |
| 86 | 'numberposts' => 12, | 85 | 'numberposts' => 12, |
| 87 | 'order' => 'DESC', | 86 | 'orderby' => 'menu_order', |
| 87 | 'order' => 'ASC', | ||
| 88 | 'suppress_filters' => false | 88 | 'suppress_filters' => false |
| 89 | ) ); | 89 | ) ); |
| 90 | } else { | 90 | } else { |
| 91 | $posts = get_posts( array( | 91 | $posts = get_posts( array( |
| 92 | 'numberposts' => 12, | 92 | 'numberposts' => 12, |
| 93 | 'order' => 'DESC', | 93 | 'orderby' => 'menu_order', |
| 94 | 'order' => 'ASC', | ||
| 94 | 'suppress_filters' => false, | 95 | 'suppress_filters' => false, |
| 95 | 'category__not_in'=>$exclude, | 96 | 'category__not_in'=>$exclude, |
| 96 | 'exclude' => $exclude_posts | 97 | 'exclude' => $exclude_posts | ... | ... |
| ... | @@ -21,7 +21,6 @@ function filter_query_args( $query_args, $sfid ) { | ... | @@ -21,7 +21,6 @@ function filter_query_args( $query_args, $sfid ) { |
| 21 | $query_args['orderby'] = 'relevance'; | 21 | $query_args['orderby'] = 'relevance'; |
| 22 | $query_args['order'] = 'ASC'; | 22 | $query_args['order'] = 'ASC'; |
| 23 | 23 | ||
| 24 | error_log(print_r($query_args, true)); | ||
| 25 | return $query_args; | 24 | return $query_args; |
| 26 | 25 | ||
| 27 | } | 26 | } | ... | ... |
-
Please register or sign in to post a comment