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

The simplest solution would be to put the audio player after the read-more link. If that would prove cumbersome (e.g. you’ve already got too may posts with audio players), you could try hooking into the the_content filter, and remove the audio player if not on a single-post view. e.g.: function mytheme_remove_audio_player_from_home( $content ) { // … Read more

MediaElement audio tag not visible

The audio shortcode does a lot more than just create an tag in the page. The WordPress audio and video shortcodes are powered by the MediaElementJS library, which is a combination of Javascript and CSS code that loads into the footer of the page whenever you have a post with one of those in it. … Read more

Open template file in Pop Up

There is a fatal error in your source (module-audio-popup.php) : Fatal error: Call to undefined function the_field() in /home/website/public_html/sites/fm/wp-content/themes/trickstarfm/assets/inc/modules/module-audio-popup.php on line 11 I will remove this answer later on, but posting this as a comment wouldn’t make a readable post.

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

I would use Custom Meta Post Boxes as seen in this tutorial: http://www.smashingmagazine.com/2011/10/create-custom-post-meta-boxes-wordpress/ You can add your own “Soundcloud ID” field which is entered in each post in a separate box. That will expose the needed data to your theme files in a much easier way. From here you can adjust your single post and … Read more

Number of times an audio file has been played using custom player

Firstly create a metabox with a custom field to add a counter to your song . As like add_action( “add_meta_boxes”, “amz_add_custom_meta_box” ); function amz_add_custom_meta_box() { global $post; if ( $post->post_type == ‘music’ ) { add_meta_box( “counter-meta-box”, “Total Played”, “_custom_meta_box_markup”, “music”, “side”, “high”, null ); } } Then, there is a function on scamp_player i.e. onTrackEnd: … Read more