Pass url parameter into a shortcode

Background of my question: I created over 300 slideshows. In my WordPress page/post they are activated with a shortcode i.e [masterslider id=15].
I pass the value (id=15) as an url-parameter to my custom-template.
i.e //url?nmbr=15. That works. I can echo the value, I can echo the complete shortcode [masterslider id=”15″] but the slider doesn’t start to show pictures.

of course, I can create one page with 100 shortcodes wich will make the page very slow. I can create 100 pages with one slider but I don’t like that.

Some of the fifty different codelines I tried in my own-template.php is:

I also tried ob_start with ob_clean without succes.
Please help.

Read more here: Pass url parameter into a shortcode

Leave a Reply

Your email address will not be published. Required fields are marked *