I'm looking for a script that I can easily implement into my Wordpress based website that will show the 'Now Playing' information from my online radio station.
All that I am looking for is a simple text output, whereas most providers offer scripts that of a fixed size with images etc.
The stream status page is http://radio.streemlion.com:2780/status.xsl
I'm quite new to coding so please forgive my basics - I've seen some examples where you have to implement scripts and/or pages which I can't easily do within a wordpress based site.
Thanks in advance!
Like its mention best approach is using API but you can use curl too to grab content. Keep in mind this is not the best solution for this since it will be slow.
Place following function in your functions.php then call that function wherever you want.
Update
You can make the following function into shortcode like this
Either use in your content [csn] or in php
echo do_shortcode('[csn]');Read more about it - https://codex.wordpress.org/Shortcode_API https://developer.wordpress.org/reference/functions/do_shortcode/