skip to Main Content

Snippet: 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' );
All PHP snippets should be added via child theme's functions.php file or via a plugin (we recommend WPCode)
Back To Top