Changeset 3549
- Timestamp:
- 02/19/2006 02:07:13 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-general.php
r3548 r3549 371 371 } 372 372 } 373 } elseif ( 'postbypost' == $type ) { 374 $arcresults = $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish' ORDER BY post_date DESC" . $limit); 373 } elseif ( ( 'postbypost' == $type ) || ('alpha' == $type) ) { 374 ('alpha' == $type) ? $orderby = "post_title ASC " : $orderby = "post_date DESC "; 375 $arcresults = $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish' ORDER BY $orderby $limit"); 375 376 if ( $arcresults ) { 376 377 foreach ( $arcresults as $arcresult ) {
Note: See TracChangeset
for help on using the changeset viewer.