Using A Url | WordPress.org

[ad_1]

I was interested in using this on my site. However, I wanted to play a url from an attachment using do_shortcode() in a page template like this:

<span style="color:#0033b3;">echo </span><span style="color:#00627a;">do_shortcode</span>(<span style="color:#067d17;">'[sonaar_audioplayer albums=”2537”]'</span>);

However, is there a way to specify a url within my site? In the above example, “2537” is actually an attachment_id, not a post ID. It would be helpful if I could just use a url to the mp3 file instead.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer