سلام
من این تابع زیر خروجی اش میلادی هست.
من میخوام شمسی بشه. هرکاری کردم نشد.. پلاگین جلالی هم اکتیوهها.
<select id="et-month-choice" name="et-month-choice">
										<option value="no-choice">انتخاب ماه</option>
										<?php
											global $wpdb, $wp_locale;
											$selected = '';
											$query = "SELECT YEAR(post_date) AS <code>year</code>, MONTH(post_date) AS <code>month</code>, count(ID) as posts FROM $wpdb->posts GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date DESC";
											$arcresults = $wpdb->get_results($query);
											foreach ( (array) $arcresults as $arcresult ) {
												if ( isset($_POST['et-month-choice']) && ( $_POST['et-month-choice'] == ($arcresult->year . $arcresult->month) ) ) {
													$selected = ' selected="selected"';
												}
												echo "<option value='{$arcresult->year}{$arcresult->month}'{$selected}>{$wp_locale->get_month($arcresult->month)}" . ", {$arcresult->year}</option>";
												if ( $selected <> '' ) $selected = '';
											}
										?>
									</select>    
 حلنشده