atom_enclosure() wordpress function and usage This text is not used because the data attribute has a value

atom_enclosure() wordpress function and usage

Home / WordPress / WordPress Wiki / atom_enclosure() wordpress function and usage

atom_enclosure()
Display the atom enclosure for the current post.

Description

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 link HTML tag(s) with a URI and other attributes.

 

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments