Changeset 365 for trunk/b2calendar.php
- Timestamp:
- 09/10/2003 07:30:08 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/b2calendar.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/b2calendar.php
r360 r365 128 128 $calendarmonthwithpost = 0; 129 129 while($calendarmonthwithpost == 0) { 130 $arc_sql="SELECT DISTINCT YEAR(post_date), MONTH(post_date), DAYOFMONTH(post_date) AS dom FROM $tableposts WHERE MONTH(post_date) = '$thismonth' AND YEAR(post_date) = '$thisyear' ORDER BY post_date DESC";130 $arc_sql="SELECT DISTINCT YEAR(post_date), MONTH(post_date), DAYOFMONTH(post_date) AS dom FROM $tableposts WHERE MONTH(post_date) = '$thismonth' AND YEAR(post_date) = '$thisyear' AND post_status = 'publish' ORDER BY post_date DESC"; 131 131 $querycount++; 132 132 $arc_results = $wpdb->get_results($arc_sql);
Note: See TracChangeset
for help on using the changeset viewer.