function function_name() { $time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s <span class="month">%3$s</span><span class="screen-reader-text">%4$s %5$s</span></time>'; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $time_string = '<time class="entry-date published" datetime="%1$s">%2$s <span class="month">%3$s</span><span class="screen-reader-text">%4$s %5$s</span></time>'; } esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date('j') ), esc_html( get_the_date('Y') ) ); echo '<p class="post-date"><span class="posted-on-text screen-reader-text">' . esc_html_x( 'Posted on', 'post date text', 'pad2' ) . '</span> <span class="posted-on">' . $time_string . '</span></p>'; }
Zwraca on nazwy miesięcy i inne rzeczy. Problem jest np z takim miesiącem jak Październik. W tym wypadku PHP zwraca 'Pa�' zamiast 'Paź' .
Macie pomysł jak rozwiązać ten problem z kodowaniem? Jak to lepiej zrobić...?
Dzięki!