Changeset 140182
- Timestamp:
- 07/28/2009 07:12:05 PM (17 years ago)
- File:
-
- 1 edited
-
charted-archives/trunk/ChartedArchives.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
charted-archives/trunk/ChartedArchives.php
r140179 r140182 15 15 function Charted_Archives($rows) { 16 16 global $wpdb; 17 if ($rows == '' || $rows == 0) { $rows = 10; }17 if ($rows == '' || $rows == 0) { $rows = 7; } 18 18 $sql = 'select count(*) as n, monthname(post_date) as monthname, month(post_date) as month, year(post_date) as year from wp_posts where post_type = "post" group by year, month order by year desc, month desc limit ' . $rows; 19 19 $months = $wpdb->get_results($sql);
Note: See TracChangeset
for help on using the changeset viewer.