the_weekday_date

Definition:
function the_weekday_date($before='',$after='') {}

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.

Parameters

  • string $before: Optional Output before the date.
  • string $after: Optional Output after the date.

Defined filters

  • the_weekday_date
    apply_filters('the_weekday_date', $the_weekday_date, $before, $after)

Source code

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;

}

3059

the_weekday

Definition:
function the_weekday() {}

Display the weekday on which the post was written.

Defined filters

  • the_weekday
    apply_filters('the_weekday', $the_weekday)

Source code

function the_weekday() {

	global $wp_locale, $post;

	$the_weekday = $wp_locale->get_weekday(mysql2date('w', $post->post_date, false));

	$the_weekday = apply_filters('the_weekday', $the_weekday);

	echo $the_weekday;

}

3057

the_title_rss

Definition:
function the_title_rss() {}

Display the post title in the feed.

Source code

function the_title_rss() {

	echo get_the_title_rss();

}

3055

the_title_attribute

Definition:
function the_title_attribute( $args = '' ) {}

Sanitize the current title when retrieving or displaying.
Works like the_title(), except the parameters can be in a string or an array. See the function for what can be override in the $args parameter.

Parameters

  • string|array $args: Optional. Override the defaults.

Return values

returns:Null on failure or display. String when echo is false.

Source code

function the_title_attribute( $args = '' ) {

	$title = get_the_title();



	if ( strlen($title) == 0 )

		return;



	$defaults = array('before' => '', 'after' =>  '', 'echo' => true);

	$r = wp_parse_args($args, $defaults);

	extract( $r, EXTR_SKIP );





	$title = $before . $title . $after;

	$title = esc_attr(strip_tags($title));



	if ( $echo )

		echo $title;

	else

		return $title;

}

3053

the_title

Definition:
function the_title($before = '', $after = '', $echo = true) {}

Display or retrieve the current post title with optional content.

Parameters

  • string $before: Optional. Content to prepend to the title.
  • string $after: Optional. Content to append to the title.
  • bool $echo: Optional, default to true.Whether to display or return.

Return values

returns:Null on no title. String if $echo parameter is false.

Source code

function the_title($before = '', $after = '', $echo = true) {

	$title = get_the_title();



	if ( strlen($title) == 0 )

		return;



	$title = $before . $title . $after;



	if ( $echo )

		echo $title;

	else

		return $title;

}

3051