Permalink
Browse files

New features - order

  • Loading branch information...
1 parent 18e4df2 commit c4f82c7d5882abc0e6e0c9eda5874000d73480c1 @satsura satsura committed Oct 12, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 loop-searchable.php
View
@@ -77,6 +77,8 @@ public function display($data) {
$order_by = get_query_var('order_by');
$order_by = ($order_by == "") ? $order_by = 'asc' : $order_by;
+ echo '<h1>'.$order_by.'</h1>';
+
// Year
$year = get_query_var('year');
// Month
@@ -93,7 +95,7 @@ public function display($data) {
// Make new Query
$query_string = array(
'posts_per_page=9',
- 'order='.$order_by,
+ 'order='.strtoupper($order_by),
'paged='.$paged
);
if ($sort_by) {

0 comments on commit c4f82c7

Please sign in to comment.