Changeset 140451
- Timestamp:
- 07/29/2009 12:15:21 PM (17 years ago)
- Location:
- charted-archives/trunk
- Files:
-
- 2 edited
-
ChartedArchives.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
charted-archives/trunk/ChartedArchives.php
r140449 r140451 17 17 $table = $wpdb->prefix . 'posts'; 18 18 if ($rows == '' || $rows == 0) { $rows = 7; } 19 $sql = 'select count(*) as n, monthname(post_date) as monthname, month(post_date) as month, year(post_date) as year from ' . $table . ' where post_type = "post" group by year, month order by year desc, month desc limit ' . $rows;19 $sql = 'select count(*) as n, monthname(post_date) as monthname, month(post_date) as month, year(post_date) as year from ' . $table . ' where post_type = "post" and post_status != "future" group by year, month order by year desc, month desc limit ' . $rows; 20 20 $months = $wpdb->get_results($sql); 21 21 $months = array_reverse($months); -
charted-archives/trunk/readme.txt
r140449 r140451 54 54 55 55 * Solved issue with non-standard database table prefix 56 * Exclude future posts
Note: See TracChangeset
for help on using the changeset viewer.