Skip to main content

Questions tagged [audio]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
8 votes
2 answers
8k views

Making audio playlist with external audio files?

In WordPress 3.9 there is a new feature that can make a playlist with uploaded audio files. I'd like to use external audio files. I use two web hosts. One for my website and one for my audio files.
mahdiar's user avatar
  • 275
6 votes
3 answers
1k views

Replace audio/video enclosure with player?

Current state: I'm parsing XML feeds into the front end and/or the back end (Admin UI), but not into the DB. Inside those feeds i place mp3- and video content, currently only as plain text (no link, ...
bueltge's user avatar
  • 17.1k
5 votes
1 answer
4k views

How to get the number of times an audio file has been played

My aim is to get the total number of listens so I was thinking I could save a 'listen' count to the audio file's post meta using update_post_meta() Is there a hook that fires each time an audio file ...
henrywright's user avatar
  • 3,077
4 votes
2 answers
7k views

Download button for wp audio player

I'd like to add a download button to the core wp audio player (mediaelement.js). How can I do that simply? Any suggestions?
mahdiar's user avatar
  • 275
4 votes
2 answers
819 views

How to remove hardcoded characters from playlists?

I'm working on a Wordpress theme for a website that makes heavy use of its default media player. In the process of styling its playlists, I found that a core file injects hardcoded characters that can'...
Gui Odai's user avatar
4 votes
1 answer
2k views

Is wp_read_audio_metadata() function deprecated?

I am trying to use the function wp_read_audio_metadata() to read the metadata for an mp3 file uploaded to a post using acf's file field. Below is my code: <?php $audio_file = get_field('...
Celso's user avatar
  • 191
4 votes
2 answers
3k views

How can I list URLs of all audio files within my media gallery?

I have a music player in my theme that generates its playlist from a javascript file that looks like this var myPlaylist = [ { mp3:'track url goes here', title:'title here', ...
marctain's user avatar
  • 557
4 votes
3 answers
4k views

How to add 'class' attribute into shortcode [audio]?

I would like to style two MediaElement players on the same page differently, and figured out the easier way to do this (compared to adding a completely new shortcode and enqueueing a new stylesheet, ...
Samuel LOL Hackson's user avatar
3 votes
1 answer
12k views

Is it possible to control the width of the Wordpress audio player?

Is it possible to control the width of the Wordpress 3.9 Audio player? I like the simplicity of the player control and would like to include a narrow-width version of it in a table that lists all of ...
lacer's user avatar
  • 31
3 votes
1 answer
193 views

WP REST - video and audio players

I'm building a VUE JS based theme, and I'm using WP REST v2. There is a problem - I can't make video and audio playlists work (built-in WP core feature). I already added: wp_enqueue_style( 'wp-...
Isu's user avatar
  • 407
3 votes
2 answers
552 views

Audio or playlist shortcode condition according to the amount of files on attachment page

My reason for doing this is for a music & entertainment site where users will have the ability to share music and videos on other websites via embed code. I'm using the audio.php and video.php ...
Chozen's user avatar
  • 163
3 votes
1 answer
1k views

Using audio shortcode for .mp3 URLs with a query string

I'm trying to use the audio shortcode with an audio file with a query string on the end of the URL and it won't work. The reason is I'd like to use expiring signed URLs with Amazon S3. If I use a ...
Jamie Hamick's user avatar
3 votes
1 answer
379 views

Call a custom field in an audio shortcode?

I'm attempting to call a custom field in an audio shortcode. The field I'm calling, enclosure, defines MP3 files that are associated with my respective posts. I'm using the PHP template editor in ...
slowerdawn's user avatar
3 votes
2 answers
1k views

Extending the Audio Shortcode

At the moment, the audio shortcode only allows four attributes, src, loop, autoplay and preload. When you upload an audio file however, it comes with pretty useful meta data such as the album art, ...
kath's user avatar
  • 611
3 votes
1 answer
3k views

How Can the Users Make a "Playlist" of Posts?

I have an audio website and I want to allow users to make custom playlists from posts. I am using posts as Albums which contains the Tracks. I thought of creating a custom post type and using it to ...
user5601's user avatar
2 votes
1 answer
1k views

Audio tags around Mp3 URL in content

I have an audio player than uses the following syntax to display its player: [audio src="http://somedomain.com/wp-content/uploads/2013/01/songtitle.mp3"] The thing is, I'm pretty sure I can show the ...
Josh Rodgers's user avatar
  • 1,173
2 votes
1 answer
771 views

Changing playlist shortcode thumbnail sizes?

I'm using do_shortcode() to display a custom WordPress audio playlist. By default the playlist will load cover art for each audio file (the attachment's featured image) and change according to what ...
kath's user avatar
  • 611
2 votes
1 answer
1k views

How to display more audio file ID3 tags in WordPress

When adding an audio file to WordPress, it automatically takes the title, album, artist from the ID3 tags in the mp3 file. It uses these in the playlist and audio file attachment page. How can I make ...
jsmod's user avatar
  • 501
2 votes
2 answers
1k views

Wordpress native "playlist" shortcode. Next and Prev there are but with no icons. How to fix?

If I use on my Wordpress 4.0 the beautiful playlist shortcode I don't see the famous "Next" and "Prev" icons, but only this code in my Html code: <div class="wp-playlist-next"></div> and ...
ginolin's user avatar
  • 63
2 votes
1 answer
934 views

How to get the ID of an item in an audio playlist?

I'm using wp_playlist_shortcode() to output an audio playlist. For example: echo wp_playlist_shortcode( array( 'ids' => $track_ids ) ); Thanks to the idea in answer 142974, I'm unhooking the ...
henrywright's user avatar
  • 3,077
2 votes
2 answers
151 views

Legacy Audio Shortcode

I have recently redone a site that was originally created in 2011. Of course there were a few big development issues and one of them is the usage of an old audio shortcode: [audio:http://localhost:...
Celso's user avatar
  • 191
2 votes
1 answer
1k views

Audio Playlist : How to bind events for "track change", "track end"?

I'm customizing native Wordpress playlist echo do_shortcode('[playlist ids="3267,3266,821"]'); I'd like to bind events to detect "track change" and "track end" and do something when those events ...
Atthapon Junpun-eak's user avatar
2 votes
1 answer
167 views

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

this is my first post here and I excited! I used this approach to make a playlist with external links of audio files I have in my drive but unfortunately It couldn't recognize the google drive direct ...
Folani's user avatar
  • 31
2 votes
1 answer
593 views

Removing Theme Audio Player - Using Browser Default

I use the loop to post remotely to a detached website. When I post audio to a page that contains <?php wp_footer(); ?> I get an audio player that does not support right-click copy audio link. I ...
Daf57's user avatar
  • 23
2 votes
1 answer
414 views

Error when overriding only some audio shortcode HTML output

Context I have a function that overrides audio shortcode HTML rendering, thanks to a WordPress hook: wp_audio_shortcode_override I used it this way in an OOP plugin: add_filter( '...
X-Raym's user avatar
  • 21
2 votes
1 answer
543 views

MP3 Manager for Wordpress

Looking for the following functionality, there does not seem to be a single way to do this, at least not that I was able to find. I would gladly pay for a plugin that did all of this to save me the ...
Tigue Von Bond's user avatar
2 votes
1 answer
104 views

Audio Playlists - Multiple file type support?

I know when uploading an audio file (mp3) to a WordPress post, I can embed the player. I can then edit the embed to also include a link to the ogg version of the file to support Firefox. I can't seem ...
Kevin Gilbert's user avatar
2 votes
0 answers
333 views

Audio preloading

I'm using wp_audio_shortcode() to display an audio file in my page. For example: $attr = array( 'src' => 'http://example.com/my-audio-file.wav', 'preload' => 'auto' ); echo ...
henrywright's user avatar
  • 3,077
2 votes
1 answer
1k views

Wordpress and WebRTC?

I'm pretty new to WordPress and I was wondering about WebRTC integration : user permissions, page integration... I'm especially interested in chat communications (writing and audio, video is not my ...
Ldev's user avatar
  • 121
1 vote
2 answers
308 views

Built in audio player?

I was certain that WordPress had built in a basic audio player. Am I mistaken. I cant find any evidence of one anywhere, just plugins ?
byronyasgur's user avatar
  • 3,012
1 vote
1 answer
1k views

Are .MP3 files with capital letter extensions allowed in [audio] shortcode?

In WordPress 3.6, using the new [audio] shortcode, I can add a player for an .mp3 file like this: [audio src="http://example.com/audio_files/test.mp3"] However, if the .mp3 file has capital letters ...
Ben Miller's user avatar
  • 2,140
1 vote
2 answers
2k views

Adding a download link to native Wordpress playlist

I need a link to enable downloading of each audio file item within the native wordpress playlist. I've used the script from this thread >> Download button for wp audio player but there isn't the ...
Blix's user avatar
  • 41
1 vote
1 answer
4k views

Wordpress audio player causing js error, mediaelementplayer is not a function

I'm using the built in Wordpress audio player with my own skin, I needed to set the default volume to 100 so I put this into footer.php <!--Change Wordpress Audio Player Default Volume--> <...
Nate M.'s user avatar
  • 77
1 vote
1 answer
4k views

How to add audio files to wordpress blog and making it auto play?

How to add audio files to wordpress blog that when someone clicks on a post Music began playing by itself.
Neo's user avatar
  • 113
1 vote
1 answer
1k views

Wordpress audio player has two different styles

So, when my page loads a see an audio player that looks like: But then, when the page finishes loading then it looks like: I noticed this in Google Chrome, but am not sure whether it's a Google ...
Josh Rodgers's user avatar
  • 1,173
1 vote
1 answer
1k views

Using track metadata from audio shortcode

How can i add an audio track in the editor and then access its metadata. When you upload the audio track before inserting it you can fill in Artist info, track name, album and description. Is there a ...
Marcos Di Paolo's user avatar
1 vote
1 answer
2k views

Customizing default Mediaelement player

Good morning/afternoon everyone. Been playing around with the default wordpress mediaelement player and definitely loving it. I managed to customize the layout a little by overriding some css values ...
nvby's user avatar
  • 31
1 vote
1 answer
1k views

Is 'preload="none"' a valid parameter in the [audio] shortcode in WordPress 3.6?

I know that MediaElement.js is part of the WordPress core in WordPress 3.6. I currently use the MediaElement.js plugin on my WordPress 3.5.1 sites. On some pages, we have several players on one page, ...
Ben Miller's user avatar
  • 2,140
1 vote
1 answer
201 views

Hard-coded Audio Player

Continuing work today on my free theme and I'm trying to make it kick some butt. I would like to embed an audio player into the theme. Not a plugin, an embedded player. The functionality of http://...
Lucas's user avatar
  • 220
1 vote
2 answers
446 views

Audio file's length (duration) is missing from Attachment Details in Media Library [closed]

I'm uploading a different mp3 file to each post as an attachment and using wp_get_attachment_metadata() to print the duration of the mp3 file. Sometimes the response from wp_get_attachment_metadata() ...
Keyslinger's user avatar
1 vote
1 answer
200 views

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

I read this thread here that offers a filter for changing MediaElement.js settings in WordPress, and I am looking to do something similar only I don't need to target all of the MediaElement.js script, ...
jsmod's user avatar
  • 501
1 vote
1 answer
436 views

Audio player shortcode not showing up when using variable

I am trying to call a custom term meta field in an audio shortcode that I have placed on a custom page that I am working on. The field contains a link to a .mp3 file that I have uploaded to my media ...
Darren's user avatar
  • 13
1 vote
1 answer
593 views

wp_audio_shortcode shows player and url [closed]

When I use my code below inside the WP loop I get to see both the player and the url. Needless to say, I only want to see the player. How to correct my code so it'll only show the player? My code ...
kiarashi's user avatar
  • 294
1 vote
1 answer
38 views

Starting from what version WordPress provides own embedded audio player without need a plugin?

According to THIS PAGE Wordpress now provides own embedded audio player. Does anyone know starting from what version this became available?
iLie's user avatar
  • 13
1 vote
1 answer
1k views

mp3 audio metadata upload integration: can I autopopulate title, caption, description from id3 tags?

I'm using the native Wordpress.org Upload New Media subsystem pretty routinely to upload MP3 files. The MP3 file workflow we use populates the ID3 tags with some important user-friendly metadata. It ...
O. Jones's user avatar
  • 471
1 vote
1 answer
124 views

no content after shortcode

I hope you guys can help me with this little bug I've encountered. I am using a shortcode to display an audio player in the entries. This is the code i've put in my functions.php: function ...
kath's user avatar
  • 611
1 vote
1 answer
499 views

Audio Player for MP3 Files for Wordpress

I have a wordpress account. I am just using the free wordpress account which does not allow me to install any plugins. I have an mp3 file and I want it to appear as an audio player. There are many ...
azamsharp's user avatar
  • 123
1 vote
1 answer
374 views

Changing "elapsed time" to "time remaining" on MP3-jPlayer audio player with CSS or PHP changes

I am trying to change the audio player on my website to show "time remaining" rather than "elapsed time". I have managed to make most of the changes I want with CSS or php changes ...
audioscapist's user avatar
1 vote
0 answers
56 views

Wordpress Audio tag problem in Chrome

I have been writing a wordpress blog for about 4 years now and only in the last few months have I had a problem with using [AUDIO] tags. I embed audio using a tag such as [audio src="http://www....
Jim Geselbracht's user avatar
1 vote
0 answers
46 views

How do I replace a audio gutenberg block to native audio wordpress

I am developing a blog theme, I would like to change the output of the audio gutenberg block to native wordpress. Any hint Gutenbergs output: <audio controls="" src="http://photer/wp-content/...
Алекс Марвин's user avatar