the_category_ID

Definition:
function the_category_ID($echo = true) {}

Return or Print Category ID.

Parameters

  • bool $echo

Source code

function the_category_ID($echo = true) {

	_deprecated_function( __FUNCTION__, '0.71', 'get_the_category()' );



	// Grab the first cat in the list.

	$categories = get_the_category();

	$cat = $categories[0]->term_id;



	if ( $echo )

		echo $cat;



	return $cat;

}

2989

the_category_head

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

Print category with optional text before and after.

Parameters

  • string $before
  • string $after

Source code

function the_category_head($before='', $after='') {

	global $currentcat, $previouscat;



	_deprecated_function( __FUNCTION__, '0.71', 'get_the_category_by_ID()' );



	// Grab the first cat in the list.

	$categories = get_the_category();

	$currentcat = $categories[0]->category_id;

	if ( $currentcat != $previouscat ) {

		echo $before;

		echo get_the_category_by_ID($currentcat);

		echo $after;

		$previouscat = $currentcat;

	}

}

2987

the_category

Definition:
function the_category( $separator = '', $parents='', $post_id = false ) {}

Display the category list for the post.

Parameters

  • string $separator: Optional, default is empty string. Separator for between the categories.
  • string $parents: Optional. How to display the parents.
  • int $post_id: Optional. Post ID to retrieve categories.

Source code

function the_category( $separator = '', $parents='', $post_id = false ) {

	echo get_the_category_list( $separator, $parents, $post_id );

}

2985

the_author_yim

Definition:
function the_author_yim() {}

Display the Yahoo! IM name of the author of the current post.

Source code

function the_author_yim() {

	_deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'yim\')' );

	the_author_meta('yim');

}

2983

the_author_url

Definition:
function the_author_url() {}

Display the URL to the home page of the author of the current post.

Source code

function the_author_url() {

	_deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'url\')' );

	the_author_meta('url');

}

2981