2012-03-01 56 views

回答

0

轉到這裏,就說明一切:[Codex] WordPress - Formatting Date and Time

+0

這僅僅是格式化的日期。我想在當天注入html。 – gutierrezalex 2012-03-01 02:36:26

+0

讓我秒,嘗試一下 – 2012-03-01 02:38:00

+0

你想修改什麼主題? – 2012-03-01 02:42:05

1

你可以做到這一點通過轉義你想在日期字符串輸出到包括像這樣的HTML:

<small><?php the_time('M \<\b\>n\<\/\b\> Y') ?></small> 
+0

從默認的主題爲「twentyten」,這似乎在twentyten_posted_on功能被包埋。我將如何去進入這個? – gutierrezalex 2012-03-01 03:10:01

+0

可以在'functions.php'調整'twentyten_posted_on'功能'echo'上面的內容。有這樣一個調整的輪廓在:http://wordpress.org/support/topic/how-to-remove-posted-date-and-by – rjz 2012-03-01 03:22:10

+0

感謝rjz!我編輯get_the_date功能get_the_date( 'M \ <\b\>ñ\ <\/\b\> Y') – gutierrezalex 2012-03-01 03:46:40

1

轉到Stetting>一般選擇日期格式你想.. 我覺得第一個符合您的需求