0

カレンダーをクリックして投稿が表示される日付を変更しようとしています。

現時点では見出しは Y,m,d (2012 年 12 月 20 日) で、l, F j, Y to (2012 年 12 月 20 日木曜日) に変更したいと考えています。

この変更を行うには、どの PHP Wordpress ファイルを操作すればよいですか?

乾杯

ジョン

4

1 に答える 1

0

please do one thing just replace function twentyeleven_posted_on() with below function in functions.php hope it will give you the date format which you require.

function twentyeleven_posted_on() {
    printf( __( '<span class="sep">Posted on </span><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'twentyeleven' ),
        esc_url( get_permalink() ),
        esc_attr( get_the_time() ),
        esc_attr( get_the_date( 'l, F j, Y' ) ),
        esc_html( get_the_date() ),
        esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
        esc_attr( sprintf( __( 'View all posts by %s', 'twentyeleven' ), get_the_author() ) ),
        get_the_author()
    );
}
于 2012-12-20T12:11:38.537 に答える