Putting shortcodes in HREFs
-
I have written a shortcode to read a URL parameter from the page and output it:
if (isset($_GET[‘param’])) {
echo(“¶m=” . $_GET[‘param’]);
}I want to append this to a link:
href=”mysite.com/page.php?[xyz-ips snippet=”param”]”
But it doesn’t work – doesn’t execute the PHP, just appends the snippet name to the URL.
Do I need to escape some of the characters or something?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Putting shortcodes in HREFs’ is closed to new replies.