
如何设置Nginx和Apach反向代理
the_category_head ( $before = '', $after = '' )
the_category_head – 这个函数用来在一个页面的HTML头部输出类别信息。它可以用来提供关于一个文章所属类别的元数据。
打印一个类别,前后有可选的文本。
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; } }