Use parameters in shortcode?
-
Is this possible?
What I am trying to achieve is e.g. [my_shortcode vara=”A” varb=”B”] in a post or page and then (underwater) execute this PHP-script:
<?php
echo $varA;
echo $varB;
?>But I don’t know how to translate the parameters vara and varb to variables.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Use parameters in shortcode?’ is closed to new replies.