Questions tagged [audio]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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, ...
1
vote
1answer
350 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 ...
2
votes
2answers
109 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:...
0
votes
1answer
930 views

Audio post format with Advanced Custom Fields

I am using the Advanced Custom Fields plugin to create custom fields for post formats. I have a field that only displays when the audio post format is selected. This is a text filed where the user ...
3
votes
1answer
233 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 ...
2
votes
1answer
219 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( '...
0
votes
1answer
76 views

Using mediaelement to display gallery of audio

Hello there I am building a theme for multimedia services and I need a gallery of audios. I am looking for a way to use the built in mediaelementplayer. It "kind of" works but I have several issues... ...
0
votes
1answer
69 views

Trying to turn all of my posts into a soundcloud playlist and can't figure out where to start

I have a music blog, and each post contains a soundcloud player. I am designing the site, and would like to find a way to turn all of the posts into a "radio station" or playlist of sorts. Whereas ...
0
votes
1answer
284 views

Add audio attachment link to RSS

This is how I'm adding a featured image to my RSS: function featuredtoRSS($content) { global $post; if ( has_post_thumbnail( $post->ID ) ){ $content = '' . get_the_post_thumbnail( $post->ID, '...
0
votes
0answers
73 views

problem getting audio url

I have a custom loop that should be getting 6 posts but it's only returning 4. There are 6 in the category $args = array( 'category_name' => 'audio', 'posts_per_page' => -1 ); $audio = new ...
2
votes
2answers
975 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 ...
-1
votes
2answers
360 views

Having problems getting the number of plays in a WordPress Playlist from an audio file

I have already seen a similar post here: How to get the number of times an audio file has been played But the code provided by @bonger did not work for me. I uploaded the new functions.php with the ...
1
vote
0answers
124 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 ...
0
votes
1answer
197 views

Customizing the built-in Media Playlist

I have a simple challenge I can't quite seem to make any progress on: Get the current track (or video) playing and display a link to a transcript of the song. This should be a simple task (and the ...
1
vote
2answers
928 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 ...
0
votes
0answers
214 views

WordPress core playlist function not showing artist and album info

On my test environment, all the information from the ID3 tags show up just fine on the playlists using the core MediaElement.js player. http://labs.mixtapes.tv/audio/mixtapes/chris-webby-checkup-199....
3
votes
2answers
427 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 ...
0
votes
0answers
84 views

Wordpress audio player add class randomly using Audio Album plugin

so i have this player displaying a progress bar, but when i click play, a "style" is added to the progress bar class on several span class. It's either width: 0 or width: 197. I'm using the Audio ...
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, ...
0
votes
3answers
348 views

Open template file in Pop Up

I am trying to load a HTML5 Audio player in a popup but am having no luck. The staging site is here The audio player works but not after you click the Listen In Pop Up button/link. Here is my code to ...
0
votes
1answer
201 views

Media Playlist Plugin

Alright so recently I purchased an audio player called "Liner" and I am working with it now converting it into a WordPress plugin but the one thing I am having the most problems with is the fact that ...
1
vote
0answers
167 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 ...
0
votes
0answers
345 views

Media Player gone on front end

This seems to have happened since the WordPress 4.0 upgrade (I think). When I use the "Add Media" button for an audio file, I can see the player in the WP backend, and it functions. But it doesn't ...
0
votes
1answer
186 views

How to create a playlist for audio associated with posts per category

I am trying to find out how to create a playlist on the category page. The playlist will play all the songs/audio files associated with posts linked to a given category. Example If i have a category ...
2
votes
1answer
683 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 ...
3
votes
1answer
562 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 ...
0
votes
1answer
53 views

What does the “Show Images” do for Wordpress music playlist?

In the new audio playlist in Wordpress 3.9, you can check the options: Show Tracklist Show Artist Name in Tracklist Show Images The last option doesn't really make sense. There is no option to set ...
0
votes
1answer
2k views

MediaElement audio tag not visible

Audio tag works normally if I include it in the page. Like this: [audio src="URL_TO_MP3_FILE"] Than another case: I'm trying to make an "audio player" with window.open. I needed two days to do that ...
7
votes
2answers
6k 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.
0
votes
1answer
83 views

Can somebody explain this mediaelement and audio tags

I'm using this built in audio tag. It works for mp3 but with wma I just get this "Download file" link. I read this: http://wordpress.org/support/topic/wmv-videos-are-not-playing but setting type="...
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.
0
votes
2answers
634 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
75 views

Wordpress Background Audio - Continous AutoPlay

I'm kinda of a newbie , but know my way around a bit in Wordpress to code things in place. I would like to know if you happen to know how to create a continous audio play in the background of the ...
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', ...
2
votes
1answer
926 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 ...
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?
0
votes
3answers
2k views

How can I add Wordpress Audio Player as featured audio in Audio Blog Posts?

I'm creating a Wordpress blogging theme and have started doing the individual files for each post-format. In doing this I've encountered a problem for the functionality to the audio format. I would ...
0
votes
0answers
120 views

Wordpress audio link not working

I'm trying to add an audio file to a page. I've added the audio file to my media library, and added it to the page using the "Add Media" button. It added the following text: [audio mp3="http://...
1
vote
1answer
197 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. ...
0
votes
0answers
82 views

Wordpress / Audio player

I need to build a website with an audio player. This audio player needs to play music without stopping when content is loaded. I know this might be a little complicated but I would like to know if ...
1
vote
1answer
741 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 ...
0
votes
0answers
187 views

Passing a location-dependent array via wp_localize_script within a shortcode

I have created a shortcode that is intended to be inserted into custom field of a music custom post type. The shortcode is coverted into an audio playlist using the jplayer jquery plugin (and it's ...
0
votes
1answer
973 views

Displaying audio player as preview in audio post in WP3.6

I'm testing the new Wordpress 3.6 Release Candidate 2 and it's [audio] shortcode and there is something I can't figure out. The post contains the following content: [audio http://wpthemetestdata....
0
votes
1answer
728 views

How to fetch all videos in custom page which uploaded in wp-admin (Media) in wordpress

I want to fetch all videos which are uploaded in back end wp-admin media. How to show all videos or audios which I uploaded on a custom page?
-1
votes
1answer
293 views

problem of path with xml file

i'd like to import a flash audio player in my wordpress theme, the import of the file works fine because it shows up on screen, responds to the click on play/pause, but the sound does not start. edit ...
0
votes
1answer
411 views

How to disable “Audio Player” to show up on the main page

I have a post with audio player with autostart enabled, and i decided to put it in the beginning of the post, before putting "read more" excerpt feature. So the problem is, that audio player plays ...
0
votes
0answers
142 views

How to add audio media in a post?

I am simply trying to add an audio file in a wordpress blog! I have tried different audio player plugins: the non-existing anymore (?) haiku minimalist player, the jQuery player, the mb....
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 ...
0
votes
1answer
1k views

Problem adding MP3 attachments to a jPlayer playlist

I'm trying to get a post's mp3 attachments working with the jplayer plugin (with playlist addon). I have it working for a set number of attachments, but am failing to find a dynamic solution for any ...
0
votes
1answer
394 views

Displaying cf post formats with oembed

Currently using CF Post Formats ( http://alexking.org/blog/2011/10/25/wordpress-post-formats-admin-ui ) and using the following code to automatically embed a URL that has been input into the 'Audio' ...