Codex

Function Reference/the weekday date


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. See also wp-includes/deprecated.php.

Contents

Description

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.

Replace With

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.

Usage

 <?php the_weekday_date$before$after ?> 

Parameters

before 
(string) Text placed before the tag's output. There is no default.
after 
(string) Text placed after the tag's output. There is no default.

Example

<p>Posts from <?php the_weekday_date('<strong>', '</strong>') ?>:</p>

Change Log

Related

the_time, the_date, the_date_xml, the_modified_time, the_modified_date, the_modified_author, single_month_title, get_the_time, get_day_link, get_month_link, get_year_link, get_calendar

See also index of Function Reference and index of Template Tags.