how to switch out music file for another using php echo
you can’t change file name. If you want to change file name dynamically try using acf for that. https://www.advancedcustomfields.com/resources/page-link/
you can’t change file name. If you want to change file name dynamically try using acf for that. https://www.advancedcustomfields.com/resources/page-link/
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
WordPress audio link not working
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
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.
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
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
WordPress Audio Player
Your only option is a hard drive recovery if you don’t have backups.
If I’m not mistaken, then you can’t do that with the playlist shortcode by default. How often does this case happen? If it rarely happens, it might be easiest to upload the file a second time, and change the caption, information as needed. Create your own playlist shortcode code based on the default one found … Read more