the_weekday_date [ WordPress Function ]
the_weekday_date ( $before = '', $after = '' )
| Parameters: |
|
| Defined at: |
|
Display the weekday on which the post was written.
Will only output the weekday if the current post's weekday is different from the previous one output.
Source
<?php
function the_weekday_date($before='',$after='') {
global $wp_locale, $post, $day, $previousweekday;
$the_weekday_date = '';
if ( $currentday != $previousweekday ) {
$the_weekday_date .= $before;
$the_weekday_date .= $wp_locale->get_weekday(mysql2date('w', $post->post_date, false));
$the_weekday_date .= $after;
$previousweekday = $currentday;
}
$the_weekday_date = apply_filters('the_weekday_date', $the_weekday_date, $before, $after);
echo $the_weekday_date;
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/the weekday date « WordPress Codex
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 ...
codex.wordpress.org - the_weekday_date Wordpress hook details -- Adam Brown, BYU ...
Applied to the post date weekday name generated by the the_weekday_date function. Function arguments are the weekday name, before text, and after text ...
adambrown.info - テンプレートタグ/the weekday date - WordPress Codex 日本語版
2008年5月4日 ... テンプレートタグ/the weekday date. 提供:WordPress Codex 日本語版. < テンプレートタグ. 移動: 案内, 検索. このテンプレートタグは非推奨となりました ...
wpdocs.sourceforge.jp - Day of the week
Using Microsoft Access, for example, you can use the WEEKDAY(date) function, and the result will be an integer between 1 and 7, where 1=Sunday and ...
searchoracle.techtarget.com