Questions tagged [audio]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
7
votes
2answers
7k 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.
6
votes
3answers
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, ...
5
votes
1answer
3k 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 ...
4
votes
2answers
5k 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?
4
votes
2answers
338 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'...
4
votes
1answer
835 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('...
4
votes
2answers
2k 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', ...
4
votes
3answers
2k 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, ...
3
votes
1answer
9k 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 ...
3
votes
2answers
430 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 ...
3
votes
1answer
573 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 ...
3
votes
1answer
244 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 ...
3
votes
1answer
2k 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 ...
2
votes
1answer
947 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 ...
2
votes
1answer
422 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 ...
2
votes
2answers
977 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 ...
2
votes
1answer
411 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 ...
2
votes
2answers
116 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:...
2
votes
1answer
701 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 ...
2
votes
1answer
229 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( '...
2
votes
2answers
689 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, ...
2
votes
1answer
528 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 ...
2
votes
0answers
52 views

WP REST- video and audio players

Im build VUE JS based theme, and Im using WP REST v2. And there is a problem, I can't make video and audio playlist working (build-in WP feature). I already added: wp_enqueue_style( 'wp-mediaelement' ...
2
votes
1answer
80 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 ...
1
vote
2answers
292 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 ?
1
vote
1answer
759 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 ...
1
vote
1answer
3k 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--> <...
1
vote
1answer
3k 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.
1
vote
1answer
324 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 ...
1
vote
1answer
1k 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 ...
1
vote
1answer
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, ...
1
vote
1answer
181 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://...
1
vote
1answer
154 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 ...
1
vote
1answer
361 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 ...
1
vote
1answer
34 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?
1
vote
1answer
997 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 ...
1
vote
1answer
114 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 ...
1
vote
1answer
477 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 ...
1
vote
0answers
173 views

Reloading a Mediaelement audio player

I am writing a WordPress plugin (private and not intended to be publicly available) in which I am displaying a huge list of audio files (about a thousand) along with ONE audio player (like the one ...
1
vote
0answers
32 views

Trim Audio Files [closed]

Is there a plugin anyone recommends that trims audio files? The most important thing is that the member/user has the ability to choose the where in the audio file the 30 sec trim will happen. Thanks!...
1
vote
0answers
113 views

How can I implement shortcode on click event

I am a newbie in WordPress not totally but 6 months. So I am finding the new thing and practicing on WordPress. I want to know that how can I implement shortcode on click event means I have a ...
1
vote
2answers
114 views

Making audio playlist by getting page's parent's ID

So right now the site automatically creates pages when a post is updated. I want this page to include an audio playlist. So what I do, is simply add the shortcode: [playlist]. Then, when the audio ...
1
vote
0answers
98 views

On screen music/audio player that grabs track URL [closed]

I have a question about a setup I am trying to achieve. I currently am setting up a site with the purpose to buy and sell instrumentals. I have setup the desired instrumental list layout which you can ...
1
vote
0answers
126 views

How to get an event to fire using Google Tag Manager for the wordpress audio player?

I am trying to track when people listen to audio I have embeded on a wordpress site via the wordpress [audio] player. I looked at the source code and inspect element of the play button and there is ...
1
vote
0answers
173 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 ...
1
vote
2answers
941 views

Replace audio links with jplayer using the_content filter

I am attempting to use : add_filter( 'the_content', 'filter_function_name' ); To find all of the anchor tags in my post which link to a .mp3 file, and then replace them with a jplayer instance that ...
1
vote
1answer
198 views

Convert mp3 into ogg?

I using an audio player plugin to play mp3 and ogg files. But I'd want the editor to input only a mp3 file and it should automatically be converted into ogg file and send both files to the front-end. ...
1
vote
2answers
868 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 ...
0
votes
2answers
640 views

filter get_children to return all mime types EXCEPT 'x'

Like it says on the tin - Im trying to create a list of post attachments that includes everything except say audio, which I'll feed into a player instead. The filter needs to be generic: 'audio' not ...
0
votes
1answer
838 views

audio link produces black box

In chrome and firefox (and maybe others) the audio link does not render a media controller. E.g. [audio http://example.com/wp/wp-content/uploads/2011/09/file.mp3] In Chrome, view page source show ...