I am coding up a simple WordPress theme and I would like to embed Instagram images via shortcode as described on WordPress.com and Instagram.com. (Both links point to the very pages that demonstrate how this should be working).
[instagram url=http://instagram.com/p/bNd86MSFv6/ hidecaption=true width=320] should be OK to embed an image from Instagram.
However, they don’t embed anything. Youtube and Vimeo work fine, but not Instagram. The URL just gets wrapped in a
<p> tag. The page about oEmbed on WordPress says, this should be supported since 3.5, I currently have WP 4.0 installed on my localhost.
What am I missing?
The main problem here is WordPress COM and ORG are NOT equal. Questions about support for the former are actually off-topic on WordPress Development.
One consequence of the non-equality of com and org is that the latter has no shortcode
[instagram], so naturally it won’t work – the built-in shortcodes can be seen at this list. On the other hand, you are right, according to the codex page about embeds Instagram is supported. Normally it works like this:
Instagram photo below http://instagram.com/p/bNd86MSFv6/ Instagram photo above
It is important that the embeds link is on a separate line.
If that is not working for you, then you can try using the
BTW tested the Instagram embed on a old WP 4.0 installation, it works just fine for me.