Hi,
I’m not sure where you want the shortcode for. The results are stored in the post content.
It can be used in coding and snippets. Sure the results are stored in posts.
Regards.
Hi,
I know how shortcodes are used. But, if you want the results of the “preview” to be used somewhere other than the post itself then the only thing I can think of is to store the post and use a shortcode that embeds the post where you want the results.
A quick search shows some that claim to do this. I’ve not tried them though.
Hi,
Having realised what you meant, the only way I could see you using a shortcode for this would be to embed the shortcode in the article or in a template.
Yes, I could probably do it. But there is a big problem with the mechanism: the CURL would be invoked at run time, which would kill your site, and possibly the source site.
I looked at the caching mechanism available for shortcodes (transients API) but that does not provide a permanent storage solution. So, even with that, it’s not going to work in practice. Unless I can find a permanent storage mechanism I don’t think I’ll be adding shortcode invocation.