html_type_rss() WordPress Function

The html_type_rss() function is used to display a feed of recent posts in RSS format. This function can be used in conjunction with the WP_Widget_RSS class to create an RSS widget.

html_type_rss() #

Display the HTML type based on the blog setting.


Description

The two possible values are either ‘xhtml’ or ‘html’.


Top ↑

Source

File: wp-includes/feed.php

function html_type_rss() {
	$type = get_bloginfo( 'html_type' );
	if ( strpos( $type, 'xhtml' ) !== false ) {
		$type = 'xhtml';
	} else {
		$type = 'html';
	}
	echo $type;
}


Top ↑

Changelog

Changelog
VersionDescription
2.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.