Removing Theme Audio Player – Using Browser Default

how to disable the WP theme player so that the browser default is always used? I get an audio player that does not support right-click copy audio link. I assume that this is the WP player and it’s replacing the browser player. Yes, that’s indeed the default WordPress media player which uses the Media Element … Read more

How to make WordPress audio playlist understand the direct links of audio files shared on google drive?

As you can see in comments section of my question, «birgire» had suggested to a user of his plugin to change the google drive direct link as follow so that It can be recognized an played in the WordPress playlist: A normal google drive direct link is something like this: https://drive.google.com/uc?export=download&id=0Bz4YdwRI3rnCMFRoTmtSS0M1VHM If you make sure … Read more

Legacy Audio Shortcode

If your only issue is that the format is incorrect then switch it in the_content hook with the correct version. Non-local content: Place in a plugin or functions.php // hook earlier than 10 add_filter(‘the_content’, ‘wpse_20160110_the_content_fix_audio’, 0); function wpse_20160110_the_content_fix_audio($content){ return str_replace ( ‘[audio:’, ‘[audio src=”https://wordpress.stackexchange.com/questions/214052/, $content ); }

Changing playlist shortcode thumbnail sizes?

Demo Plugin – Fixed Size Here’s one suggestion as a demo plugin (PHP 5.4+): <?php /* Plugin Name: Custom Playlist Thumb Size */ namespace WPSE238646\PlaylistThumbSize; add_shortcode( ‘playlist’, function( $atts = [], $content=”” ) { add_filter( ‘wp_get_attachment_image_src’, __NAMESPACE__ . ‘\\src’ , 10, 3 ); $out = wp_playlist_shortcode( $atts, $content ); remove_filter( ‘wp_get_attachment_image_src’, __NAMESPACE__ . ‘\\src’ ); … Read more

Audio tags around Mp3 URL in content

Filter the_content ond/or the_excerpt and replace audio URLs that are not an attribute value already. Example: add_filter( ‘the_content’, ‘wpse_82336_audio_url_to_shortcode’, 1 ); add_filter( ‘the_excerpt’, ‘wpse_82336_audio_url_to_shortcode’, 1 ); function wpse_82336_audio_url_to_shortcode( $content ) { # See http://en.wikipedia.org/wiki/Audio_file_format # Adjust the list to your needs $suffixes = array ( ‘3gp’, ‘aa3’, ‘aac’, ‘aiff’, ‘ape’, ‘at3’, ‘au’, ‘flac’, ‘m4a’, ‘m4b’, … Read more

Background audio player

For a permanent/persistent audio player I can think of these options: a completely Ajaxified theme, so the content is dynamicaly loaded put the audio player in a frame and the navigation/content in another one (yes, frames, that thing of the past) open the audio player in a pop-up make WordPress the CMS but pull the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)