Make a dynamic shortcode
-
I have a plugin to be inserted on a page simply asks me to add a shortcode in the page.
Ex: [PluginName dl=3 tpl=8]It works very well but I wish this tag changes according to the url of the page.
Eg http://something.com/page/?dl=2 show [PluginName dl=2 tpl=8]
http://something.com/page/?dl=3 show [PluginName dl=3 tpl=8]I thought of doing it via the template page where I could easily retrieve the variable in the url with a php function. Where I block is how to call the plugin, passing it the right variable? Is there a way to know what php function is called by the shortcode?
Thank you for your help,
The topic ‘Make a dynamic shortcode’ is closed to new replies.