WordPress:Template Tags/the weekday
来自站长百科
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.