• Resolved sanaalazmeh

    (@sanaalazmeh)


    Hi!
    Please advise if there is a shortcode to be used for url
    If not is it possible to create a shortcode?
    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author StuartMillington

    (@stuartmillington)

    Hi,

    I’m not sure where you want the shortcode for. The results are stored in the post content.

    Thread Starter sanaalazmeh

    (@sanaalazmeh)

    It can be used in coding and snippets. Sure the results are stored in posts.
    Regards.

    Plugin Author StuartMillington

    (@stuartmillington)

    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.

    Plugin Author StuartMillington

    (@stuartmillington)

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Short code for url’ is closed to new replies.