I have made a simple WP plugin, that will get some documents from calameo.com and present them in a nice manner. I have made a custom shortcode for it. Let's call it "Shortcode"…
I will have [Shortcode vendor=vendor1] to show only the documents related to
a vendor and I know how to do that.
What I need to do is to pass arguments values from the url to the shortcode but I didn't found yet the way to do it.
Any help is appreciated.
Agreed, with Derek, the question is quite unclear.
To what I understand, you want to extract the parameters passed on the URL of the page that contains your shortcode (say a 'vendor' parameter), and make that the shortcode parameters can take this value dynamically ?
If it's the case, that does not make sense : shortcodes are used to generate your page's code (HTML, JavaScript, .. whatever runs in the browser), and have completely disappeared in the resulting page, meaning that you can't behave differently upon the value of the URL parameter.. unless your shortcode generates code (JavaScript) that contains some 'vendor' variable that could take its value from the parameter, and generate in its turn something (HTML, SVG….), in brief, some kind of tricky code..