What's New? For Users: ● Post Formats ● Audio/Video Support ● Autosave ● Post Locking ● Nav Menu ● Revisions For Developers ● Better/Easier Post Format Templating ● Audio/Video Support in Core ● Better Shortcode Support
WordPress now has in its core MediaElement. js ● [video src="video-source.mp4"] ● [video width="600" height="480" mp4="source.mp4" ogv="source.ogv" webm="source.webm"] ● [audio src="audio-source.mp3"] ● [audio mp3="source.mp3" ogg="source.ogg" wav=" source.wav"] BUT there are also filters so you can drop any url to a media file. Audio/Video Support
New Theme Functions The new post format media functions are very easy to use. No more creating custom fields. the_post_format_audio(); the_post_format_video(); the_post_format_image();
The_Remaining_Content the_content(); will now display your text content as well as the post formats media. the_remaining_content(); will display only the text content.
Shortcode_Atts_{$Shortcode} ● Override the default shortcode attributes ● Ignore certain attribute values from the user and instead use the defaults ● Generally modify the behavior of a shortcode without modifying the original shortcode function. For example: You could add a copyright to all image captions from the Gallery shortcode.