WordPress.org

Support

Support » Plugins and Hacks » oEmbed Instagram » [Plugin: oEmbed Instagram] Short URL support

[Plugin: oEmbed Instagram] Short URL support

Viewing 5 replies - 1 through 5 (of 5 total)
  • Kailey (trepmal)

    @trepmal

    Volunteer Mod & Reviewer

    Short url support can be added with this code, if you want to add it yourself: wp_embed_register_handler(
    'instagram',
    '#http://instagr.am/p/[a-zA-Z0-9\-_]+/?$#i',
    array(&$this, 'oembed_handler')
    );

    Just look for the similar code that uses the full ‘instagram.com’ domain and stick this after. This code also adds support for image IDs with underscores (e.g. http://instagr.am/p/OXTzfLSY_M/)

    deanhewson

    @deanhewson

    Kailey that is awesome awesome. This really needs to be supported by the plugin itself – I’m not entirely sure where people are supposed to be getting the web address of their images if not through their iOS or Android app.

    Kailey (trepmal)

    @trepmal

    Volunteer Mod & Reviewer

    Support for Instagram oEmbeds have actually landed in core, so once WordPress 3.5 comes out, you won’t even need a plugin.

    deanhewson

    @deanhewson

    Boom

    Hi.

    My site is http://www.susanjanebradfield.com

    Can i get Instagram on this site?

    I am fairly new to this and have done well so far but this has got me really confused?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: oEmbed Instagram] Short URL support’ is closed to new replies.
Skip to toolbar