WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/do feed

Description

Loads the feed template from the use of an action hook.

If the feed action does not have a hook, then the function will die with a message telling the visitor that the feed is not valid.

It is better to only have one hook for each feed.

Usage

<?php do_feed() ?>

Parameters

None.

Return Values

(void) 
This function does not return a value.

Examples

Notes

Change Log

Since: 2.1.0

Source File

do_feed() is located in wp-includes/functions.php.

Related

See also index of Function Reference and index of Template Tags.