| 356 | | } elseif ( 'postbypost' == $type ) { |
| 357 | | $arcresults = $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_date < '$now' AND post_status = 'publish' ORDER BY post_date DESC" . $limit); |
| | 356 | } elseif ( ( 'postbypost' == $type ) || ('alpha' == $type) ) { |
| | 357 | ('alpha' == $type) ? $orderby = "post_title ASC " : $orderby = "post_date DESC "; |
| | 358 | $arcresults = $wpdb->get_results("SELECT ID, post_date, post_title FROM $wpdb->posts WHERE post_date < '$now' AND post_status = 'publish' ORDER BY " . $orderby . $limit); |