ir skripts:
if ('monthly' == $type) {
$arcresults = $wpdb->get_results("SELECT DISTINCT YEAR(post_date) AS `year`, MONTH(post_date) AS `month`, count(ID) as posts FROM $wpdb->posts WHERE post_date < '$now' AND post_status = 'publish' GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date DESC" . $limit);
if ($arcresults) {
$afterafter = $after;
foreach ($arcresults as $arcresult) {
$url = get_month_link($arcresult->year, $arcresult->month);
$text = sprintf('%s/%d', $arcresult->month, $arcresult->year);
}
echo get_archives_link($url, $text, $format, $before, $after);
}
}
un rezultaataa links:
1/2006
kaa sheit dabuut, lai meeneshiem buutu nulles? lai buutu 01/2006