I have a shortcode like this [soundcloud url="http://api.soundcloud.com/tracks/67658191" params="" width=" 100%" height="166" iframe="true" /]
How can I get the content of the URL part or extract the whole shortcode in a post and then display it?
do_shortcode
doesn’t help a lot.
I want to use that shortcode in my theme and since the URL part is dynamic I have difficulty of having it display dynamically.
shortcode_parse_atts
will give you managable information.You will get an array that looks like this:
You can the do something like:
I don’t understand the context you want to use this in. I think you’ve left out a fair bit of explanation.