WordPress:Template Tags/the weekday

来自站长百科
Xxf3325讨论 | 贡献2008年6月25日 (三) 11:35的版本 (新页面: {{Deprecated}} == Description == Displays the day of the week (e.g. Friday). This tag must be used within WordPress:The Loop. == Replace With == To replace this tag, use [[WordPres...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航、​ 搜索

模板:Deprecated

Description

Displays the day of the week (e.g. Friday). This tag must be used within WordPress:The Loop.

Replace With

To replace this tag, use the_time() with 'l' as the format string:

<?php the_time('l'); ?>

See WordPress:Formatting Date and Time for information on date and time format string use.

Usage

%%% <?php the_weekday() ?> %%%

Example

 <p>This was posted on a <?php the_weekday() ?>.</p>

Parameters

This tag does not accept any parameters.

Related

模板:Tag Date Tags

模板:No Param Tag Footer