WordPress.org

Ready to get started?Download WordPress

Codex

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

Function Reference/rss enclosure

Description

Display the rss enclosure for the current post.

Uses the global $post to check whether the post requires a password and if the user has the password for the post. If not then it will return before displaying.

Also uses the function get_post_custom() to get the post's 'enclosure' metadata field and parses the value to display the enclosure(s). The enclosure(s) consist of enclosure HTML tag(s) with a URI and other attributes.

Usage

<?php rss_enclosure() ?>

Parameters

None.

Return Values

(void) 
This function does not return a value.

Examples

Notes

Change Log

Since: 1.5.0

Source File

rss_enclosure() is located in wp-includes/feed.php.

Related

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