the_search_query

Definition:
function the_search_query() {}

Display the contents of the search query variable.
The search query string is passed through esc_attr() to ensure that it is safe for placing in an html attribute.

Defined filters

  • the_search_query
    apply_filters( 'the_search_query', get_search_query( false )

Source code

function the_search_query() {

	echo esc_attr( apply_filters( 'the_search_query', get_search_query( false ) ) );

}

3039

the_post_thumbnail

Definition:
function the_post_thumbnail( $size = 'post-thumbnail', $attr = '' ) {}

Display Post Thumbnail.

Parameters

  • int $size: Optional. Image size. Defaults to ‘post-thumbnail’, which theme sets using set_post_thumbnail_size( $width, $height, $crop_flag );.
  • string|array $attr: Optional. Query string or array of attributes.

Source code

function the_post_thumbnail( $size = 'post-thumbnail', $attr = '' ) {

	echo get_the_post_thumbnail( null, $size, $attr );

}

3037

the_post_password

Definition:
function the_post_password() {}

Display the post password.
The password is passed through esc_attr() to ensure that it is safe for placing in an html attribute.

Source code

function the_post_password() {

	global $post;

	if ( isset( $post->post_password ) ) echo esc_attr( $post->post_password );

}

3035

the_post

Definition:
function the_post() {}

Iterate the post index in the loop.

Defined actions

  • loop_start
    do_action_ref_array('loop_start', array(&$this));

Source code

	function the_post() {

		global $post;

		$this->in_the_loop = true;



		if ( $this->current_post == -1 ) // loop has just started

			do_action_ref_array('loop_start', array(&$this));



		$post = $this->next_post();

		setup_postdata($post);

	}

3033

the_permalink_rss

Definition:
function the_permalink_rss() {}

Display the permalink to the post for use in feeds.

Defined filters

  • the_permalink_rss
    apply_filters('the_permalink_rss', get_permalink()

Source code

function the_permalink_rss() {

	echo esc_url( apply_filters('the_permalink_rss', get_permalink() ));

}

3031