WordPress:Template Tags/the weekday

来自站长百科
Fludlen讨论 | 贡献2008年7月2日 (三) 15:17的版本
跳转至: 导航、​ 搜索

模板:Deprecated

Description


This function has been deprecated. That means it has been replaced by a new function or is no longer supported, and may be removed from future versions. All code that uses this function should be converted to use its replacement if one exists.


描述

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

显示星期几(例如,星期五)。必须在The Loop内使用这个标签。

Replace With

取代

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

要取代这个标签,请使用the_时间(),用'l'作为格式字符串:

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

<?php the_时间('l'); ?>

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

请看看日期和时间格式关于日期和时间字符串的使用的信息。

Usage

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

用法

%%% <?php the_星期几() ?> %%%

Example

例子

 <p>This was posted on a <?php the_weekday() ?>.</p>
 <p>这篇文章发表于 <?php the_星期几() ?>.</p>

Parameters

参数

This tag does not accept any parameters. 这个标签不接受任何参数。

Related

模板:Tag Date Tags

模板:No Param Tag Footer

相关的

模板:标签 日期标签