Add audio file to post using custom term meta field as link [closed]

I figured it out! Using this code I was able to use my custom meta field as the link in the audio shortcode. First I created a function in functions.php: function audio_link() { $terms = get_the_terms($post->ID, ‘taxonomy-name’); $result = “”; if (is_array($terms) || is_object($terms)){ foreach ($terms as $term) { $term_id = $term->term_id; $result .= get_term_meta( … Read more

WP audio playlist width

Found a solution: <div style=”float:left;width:50%;”> <div style=”padding-right:10px;”> </div></div> <div style=”float:right;width:50%;”> <div style=”padding-left:10px;”> </div></div> <div style=”clear: both;”></div> Best,

Dealing with the clickTrack event in wp-playlist.js in order to display audio download link on the playlist title row

Update: I found a super simple solution to my question several hours after posting it. It turns out a filter is not needed at all. Adding onclick=’event.stopPropagation();’ to the download link is all that is needed. It will allow for putting the download link on the same title row without affecting the ability to change … Read more

Extend WordPress Audio Widget to accept HLS (.m3u8) URLs

There is a filter, wp_audio_extensions, that should allow you to add m3u8 to the whitelist of allowed file extensions. Add this code to a child theme’s functions.php file, or using a plugin like Code Snippets: function wpse_341199_allow_m3u8_extension( $exts ) { $exts[] = ‘m3u8’; return $exts; } add_filter( ‘wp_audio_extensions’, ‘wpse_341199_allow_m3u8_extension’ );

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