I am using a plugin called Post Snippets, which allows you to define a snippet of HTML and have it appears in the Wordpress post using shortcode [snippet].
It says that I can also pass a variable that will be assigned within the snippet, such as {url}.
I am unclear how to assign the value to the variable url. I have tried to use another plugin called exec-php to execute a php statement:
[exec]url = "domain.com"; [/exec]
But this yields a 'blank' value for {url}.
This is all in php within Wordpress, so only a quasi programming question, but I figured this would have the most knowledgeable people.