Snippets: Display Audio Embed On Blog Entry

By default audio posts display a featured image with a little overlay icon. If you want you can paste the following code in a child theme's functions.php file and it will display the audio embed instead of the image so visitors can listen to your audio right on the main blog page and tag/category archives.

add_filter( 'wpex_blog_entry_audio_embed', '__return_true' );

Version Required:3.5.3+

Snippet Type: PHP

Posted Under: Blog

All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)