the_time

Definition:
function the_time( $d = '' ) {}

Display the time at which the post was written.

Parameters

  • string $d: Either ‘G’, ‘U’, or php date format.

Defined filters

  • the_time
    apply_filters('the_time', get_the_time( $d )

Source code

function the_time( $d = '' ) {

	echo apply_filters('the_time', get_the_time( $d ), $d);

}

3049

the_terms

Definition:
function the_terms( $id = 0, $taxonomy, $before = '', $sep = ', ', $after = '' ) {}

Display the terms in a list.

Parameters

  • int $id: Post ID.
  • string $taxonomy: Taxonomy name.
  • string $before: Optional. Before list.
  • string $sep: Optional. Separate items using this.
  • string $after: Optional. After list.

Return values

returns:False on WordPress error. Returns null when displaying.

Defined filters

  • the_terms
    apply_filters('the_terms', $term_list, $taxonomy, $before, $sep, $after)

Source code

function the_terms( $id = 0, $taxonomy, $before = '', $sep = ', ', $after = '' ) {

	$term_list = get_the_term_list( $id, $taxonomy, $before, $sep, $after );



	if ( is_wp_error( $term_list ) )

		return false;



	echo apply_filters('the_terms', $term_list, $taxonomy, $before, $sep, $after);

}

3047

the_taxonomies

Definition:
function the_taxonomies($args = array() {}

Display the taxonomies of a post with available options.
This function can be used within the loop to display the taxonomies for a post without specifying the Post ID. You can also use it outside the Loop to display the taxonomies for a specific post.

Parameters

  • array $args: Override the defaults.

Source code

function the_taxonomies($args = array()) {

	$defaults = array(

		'post' => 0,

		'before' => '',

		'sep' => ' ',

		'after' => '',

		'template' => '%s: %l.'

	);



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

	extract( $r, EXTR_SKIP );



	echo $before . join($sep, get_the_taxonomies($post, $r)) . $after;

}

3045

the_tags

Definition:
function the_tags( $before = null, $sep = ', ', $after = '' ) {}

Retrieve the tags for a post.

Parameters

  • string $before: Optional. Before list.
  • string $sep: Optional. Separate items using this.
  • string $after: Optional. After list.

Source code

function the_tags( $before = null, $sep = ', ', $after = '' ) {

	if ( null === $before )

		$before = __('Tags: ');

	echo get_the_tag_list($before, $sep, $after);

}

3043

the_shortlink

Definition:
function the_shortlink( $text = '', $title = '', $before = '', $after = '' ) {}

Display the Short Link for a Post
Must be called from inside "The Loop"

Parameters

  • string $text: Optional The link text or HTML to be displayed. Defaults to ‘This is the short link.’
  • string $title: Optional The tooltip for the link. Must be sanitized. Defaults to the sanitized post title.
  • string $before: Optional HTML to display before the link.
  • string $after: Optional HTML to display after the link.

Defined filters

  • the_shortlink
    apply_filters( 'the_shortlink', $link, $shortlink, $text, $title )

Source code

function the_shortlink( $text = '', $title = '', $before = '', $after = '' ) {

	global $post;



	if ( empty( $text ) )

		$text = __('This is the short link.');



	if ( empty( $title ) )

		$title = the_title_attribute( array( 'echo' => FALSE ) );



	$shortlink = wp_get_shortlink( $post->ID );



	if ( !empty( $shortlink ) ) {

		$link = '<a rel="shortlink" href="' . esc_url( $shortlink ) . '" title="' . $title . '">' . $text . '</a>';

		$link = apply_filters( 'the_shortlink', $link, $shortlink, $text, $title );

		echo $before, $link, $after;

	}

}

3041