• Resolved Thomas Clausen

    (@tntc1978)


    This might be a PRO plugin feature, but is it possible to run a hashtag competition through this plugin?

    When trying out the demo on your site it seems like the only way to vote/like is to click all the way through to the individual image on Instagram. But I would like to have this interaction on the site itself. Is that possible?

    https://wordpress.org/plugins/instagram-feed/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author smashballoon

    (@smashballoon)

    Hey Thomas,

    I’m afraid this isn’t possible with either version of the plugin. The Instagram API that we use is read-only and so it isn’t possible to use the plugin to like or comment on the photos directly on your website. You’d have to click on the photo and then like or comment on the Instagram platform itself.

    If you have any other questions then just let me know.

    John

    Thread Starter Thomas Clausen

    (@tntc1978)

    Thanks for the reply John.

    Would it then be possible to make every Instagram image link to a single post, so that one could use a plugin like this: https://wordpress.org/plugins/wp-postratings to have the competition?

    Plugin Author smashballoon

    (@smashballoon)

    Hey Thomas,

    Yep, you can do this using the plugin’s Custom JavaScript section, which is on the plugin’s Customize page. Each item in the feed has a unique ID and so you can add a snippet which changes the link on the photo in that item. For example:

    $('#sbi_1003156351259591986_13460080 .sbi_photo').attr('href', 'https://smashballoon.com');

    To link all of the photos to the same page, you could just use the following snippet instead:

    $('#sb_instagram .sbi_photo').attr('href', 'https://smashballoon.com');

    If you have multiple Instagram feeds and want photos in each feed to link to different pages then you can add a class in the shortcodes like so:

    [instagram-feed class="feed1"]
    [instagram-feed class="feed2"]

    And then target that feed in the JavaScript:

    $('#sb_instagram.feed1 .sbi_photo').attr('href', 'http://site.com/1');
    $('#sb_instagram.feed2 .sbi_photo').attr('href', 'http://site.com/2');

    Let me know whether that makes sense.

    John

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Running a competition (vote/like)’ is closed to new replies.