Languages: English • 日本語 (Add your language)
Displays the weekday of the current post (e.g. Friday) only if it is different from the weekday of the previous post. This tag must be used within The Loop.
There is one-to one correspondence with another template tag, so to replace, use the_date() as a trigger and the_time() with 'l' (lowercase letter L) as the format string, as shown in this PHP code block:
<?php if(the_date('','','', FALSE)) the_time('l'); ?>
See Formatting Date and Time for information on date and time format string use.
<?php the_weekday_date( $before, $after ) ?>
<p>Posts from <?php the_weekday_date('<strong>', '</strong>') ?>:</p>
get_calendar(), get_day_link(), get_month_link(), get_the_date(), get_the_time(), get_year_link(), single_month_title(), the_date(), the_date_xml(), the_modified_date(), get_the_modified_date(), the_modified_time(), get_the_modified_time(), the_time()