Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hi, there is another problem. Translate the date inside single event page. But I have the solution, use the wordpress function “date_i18n” instead of php function “date”.

    event-list-cal.php:

    function event_list_cal_above_content($content) {
    	if ( is_singular( 'event-list-cal' ) ) {
    		$post_custom = get_post_custom();
    		$date_format = get_option( 'event_list_cal_single_date_format', get_option( 'date_format' ) );
    		foreach($post_custom as $key => $value) {
    			if($key == 'event-date') {
    				$date = strtotime($value[0]);
    				//$event_date = date($date_format, $date);
    				$event_date = date_i18n($date_format,$date);
    			}
Viewing 1 replies (of 1 total)