• Hi,

    I know I can display Instagram photos in my posts by simply copy-pasting the url of an image, for example https://www.instagram.com/p/Bqj5sIEgDv2/

    Now, I have a shortcode that I would like to be able to output Instagram urls like the one above.

    If I just return “https://www.instagram.com/p/Bqj5sIEgDv2/”, WP simply outputs this as a text string in the post.

    I have also tried to wrap the Instagram url in do_shortcode() but that didn’t work too.

    Anyone know a secret trick for making a shortcode output an Instagram url so the post displays the image?

    Thanks,
    Mads

    • This topic was modified 4 years, 7 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shortcode with Instagram embedding’ is closed to new replies.