Docs    Instagram    Documentation

Hide duplicate Instagram photos

Version 2.0 and above

Version 2.0 and above of the plugin will now automatically remove duplicate photos from your feed.

Less than version 2.0

If you’re displaying photos from multiple hashtags then sometimes the same photos may appear in your feed twice. For example, if you’re using the hashtags “#blue” and “#sky” then the same photo may contain both hashtags and so is displayed twice.  You can prevent this by adding the following snippet to the plugin’s Custom JavaScript section, which is on the plugin’s Customize page:

var idArr = [];
$('.sbi_item').each(function(){
  var $self = $(this),
    id = $self.attr('id');
  if( idArr.indexOf(id) == -1 ){
    idArr.push(id);
  } else {
    $self.hide();
  }
});
support

Couldn’t find your answer in the docs?

Contact Support

Was this article helpful?