• i have a page with 10 buttons on it, different sections of the page is set up to call a url, see below, to display different 3d files.

    currently, i have made 10 different pages build that have the following embedded as shortcode within each file uniquely.

    here is the short code:
    <iframe id=”vs_iframe” src=”https://www.viewstl.com/?embedded&url=https://mysite.com/wp-content/uploads/2020/07/stl1.stl&#8221; style=”border:0;margin:0;width:100%;height:100%;”></iframe>

    notice the stl1.stl file name embedded in shortcode above
    >>
    what i would like to do is add your variable such as
    [cgv stl-file] that is set to the file name… without having to go to your variable value set page… ideally, as part of the button call.

    notice your global variable [cgv stl-file] embedded in following shortcode.
    It works well… just have to figure out how to reset the value using buttons, drop downs, etc.

    <iframe id=”vs_iframe” src=”https://www.viewstl.com/?embedded&url=https://mysite.com/wp-content/uploads/2020/07/%5Bcgv stl-file]” style=”border:0;margin:0;width:100%;height:100%;”></iframe>

    the above url calls the site
    https://www.viewstl.com to display 3d stl model files
    its a cool site, check it out

Viewing 1 replies (of 1 total)
  • Plugin Author YeKen

    (@aliakro)

    Glad you’re using my plugin! Unfortunately I’m struggling to understand your use case I’m afraid.

    Would custom parameters help?

Viewing 1 replies (of 1 total)
  • The topic ‘how to set var value in short code on page?’ is closed to new replies.