wpseek.com
A WordPress-centric search engine for devs and theme authors



do_feed_rss2 › WordPress Function

Since2.1.0
Deprecatedn/a
do_feed_rss2 ( $for_comments )
Parameters:
  • (bool) $for_comments True for the comment feed, false for normal feed.
    Required: Yes
See:
Defined at:
Codex:

Loads either the RSS2 comment feed or the RSS2 posts feed.



Source

function do_feed_rss2( $for_comments ) {
	if ( $for_comments ) {
		load_template( ABSPATH . WPINC . '/feed-rss2-comments.php' );
	} else {
		load_template( ABSPATH . WPINC . '/feed-rss2.php' );
	}
}