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 6 years, 2 months ago by
Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic