Home Forums Teddy WordPress Theme Integrate Mixcloud & HTML5 jQuery Audio Player Reply To: Integrate Mixcloud & HTML5 jQuery Audio Player

#1892

Johnny
Participant

Hi, please do this to place mixcloud-player in POST:
1. using this code to replace codes between last <section> tag in file mod-audio.php:

<div class="soundcloud-wrap">
                <?php $teddy_soundcloud_code = get_post_meta(get_the_ID(), 'teddy_soundcloud_code', true); ?>
                <?php if (strpos($teddy_soundcloud_code,'soundcloud') !== false) : ?>
                    <iframe width="100%" height="166" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=<?php echo $teddy_soundcloud_code;?>&color=ff3900&auto_play=false&show_artwork=true"></iframe>
                <?php endif; ?>
                <?php if (strpos($teddy_soundcloud_code,'mixcloud') !== false) : ?>
                    <iframe width="100%" height="200" src="//www.mixcloud.com/widget/iframe/?feed=<?php echo $teddy_soundcloud_code;?>" frameborder="0"></iframe>
                <?php endif; ?>
                <?php if (strpos($teddy_soundcloud_code,']') !== false) : ?>
                    <?php //echo  do_shortcode($teddy_soundcloud_code);?>
                <?php endif; ?>
            </div><!--end .soundcloud-wrap-->

2. create you post with audio format and content text should be enter:
[mixcloud width=”300″ height=”300″ iframe=”true” playlist=”true” ]mixcloud[/mixcloud]
3. code for WP should be enter:
http://www.mixcloud.com/artist-name/long-live-set-name/
Best

  • This reply was modified 3 years, 11 months ago by  Johnny.