Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Nesting 3rd party shortcode inside Advanced iFrame shortcode
https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=4146
Page 1 of 1

Author:  wildelement [ 8. Sep 2016, 17:36 ]
Post subject:  Nesting 3rd party shortcode inside Advanced iFrame shortcode

Is it possible to nest a shortcode within the Advanced iFrame Pro shortcode?

Something like this:

[advanced_iframe securitykey="ABCDEFG" src="[MYSHORTCODE FIELD="CUSTOM_URL"][/MYSHORTCODE]"] [/advanced_iframe]

The shortcode I want to use pulls a url from a custom field. I had this working on a previous version of your plugin but the old code no longer works.

Help! Thanks :)

Author:  TinyWebGallery [ 8. Sep 2016, 23:25 ]
Post subject:  Re: Nesting 3rd party shortcode inside Advanced iFrame short

Yes. this is supported in the pro version.

See the documentation of the url field. [] needs to be replaced by {{}} because Wordpress would filter this otherwise.

Best, Michael

Author:  wildelement [ 9. Sep 2016, 01:14 ]
Post subject:  Re: Nesting 3rd party shortcode inside Advanced iFrame short

Great, glad to hear this is supported in the pro version. I have already upgraded.

I have followed the syntax you described, thank you. When I use the double braces, the resulting iframe url is broken. Instead of using the src url from the 3rd party plugin, the plugin shortcode parameters are appended to the site url.

Here is an example of what happens:

I use this set of nested shortcodes in a post:

[advanced_iframe securitykey="ABCDEFG" src="{{myshortcode field='url' output='raw'}}{{/myshortcode}}"][/advanced_iframe]

The url in the advanced iframe becomes:

http://www.mysite.com/my-unique-post-name/{{myshortcode field=

Any idea of what is happening here?

Author:  TinyWebGallery [ 9. Sep 2016, 13:41 ]
Post subject:  Re: Nesting 3rd party shortcode inside Advanced iFrame short

{{myshortcode field='url' output='raw'}}{{/myshortcode}}
is not supported. Only
{{myshortcode field='url' output='raw'}}

Author:  wildelement [ 9. Sep 2016, 19:53 ]
Post subject:  Re: Nesting 3rd party shortcode inside Advanced iFrame short

Thank you for your help, I appreciate the fast replies.

I used the following syntax:
[advanced_iframe securitykey="ABCDEFG" src="{{myshortcode field='url' output='raw'}}"]

Unfortunately I get the same result:
http://www.mysite.com/my-unique-post-name/{{myshortcode field=

Author:  TinyWebGallery [ 9. Sep 2016, 20:59 ]
Post subject:  Re: Nesting 3rd party shortcode inside Advanced iFrame short

What does the shortcode alone generate?

I just tested with my simlple shortcode and there it works fine.

Best, Michael

Author:  wildelement [ 9. Sep 2016, 21:59 ]
Post subject:  Re: Nesting 3rd party shortcode inside Advanced iFrame short

The 3rd party shortcode alone outputs a url. Your shortcode also works when I input a url in the src parameter.

Author:  TinyWebGallery [ 9. Sep 2016, 23:36 ]
Post subject:  Re: Nesting 3rd party shortcode inside Advanced iFrame short

can you provide this shortcode for testing?

Author:  wildelement [ 10. Sep 2016, 00:20 ]
Post subject:  Re: Nesting 3rd party shortcode inside Advanced iFrame short

Absolutely! Is it possible to send it to you directly?

Author:  TinyWebGallery [ 10. Sep 2016, 00:24 ]
Post subject:  Re: Nesting 3rd party shortcode inside Advanced iFrame short

Sure: http://www.tinywebgallery.com/en/about.php

Best, Michael

Author:  wildelement [ 10. Sep 2016, 00:33 ]
Post subject:  Re: Nesting 3rd party shortcode inside Advanced iFrame short

Thank you. I sent you the plugin files and a link to a sample post.

Author:  wildelement [ 13. Sep 2016, 15:50 ]
Post subject:  Re: Nesting 3rd party shortcode inside Advanced iFrame short

PROBLEM SOLVED by Michael (who is awesome!)
Issue was with my install of the Advanced iFrame Pro plugin. Somehow old free version had overwritten the good Pro version. I reinstalled a fresh version and everything is beautiful. Thanks a million.
This plugin is AWESOME.
Thanks again for all your help!

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/