Instagram for WordPress
more photos (2 posts)

  1. theapposite
    Posted 2 years ago #

    Hello I was wondering if there is a way to display more photos at a time? thanks


  2. raacademy
    Posted 2 years ago #

    Edit your CSS to include (wpinstagram.css)

    display: inline;
    float: left;


    ul.wpinstagram, ul.wpinstagram li, ul.wpinstagram li a, ul.wpinstagram li a img {
    	margin: 0 !important;
    	padding: 0 !important;
    	border: 0 !important;

    Then edit your PHP (wpinstagram.php)
    Look for:
    echo '<ul class="'.$cls .'" style="width: '.$imagesize.'px; height: '.$imagesize.'px;">';

    Initially the open and close

      is outside the foreach.

      Change it like so

      foreach($images as $image):
      					$imagesrc = $image[$imagetype];
      									echo '<ul class="'.$cls .'" style="width: '.$imagesize.'px; height: '.$imagesize.'px;">';
      					echo '<li><a href="http://ink361.com/p/'.$image['id'].'" data-user-url="http://ink361.com/#/photo/'.$image['id'].'" data-original="'.$image['image_large'].'" title="'.$image['title'].'" rel="'.$this->id.'" data-onclick="http://plugin.ink361.com/photo.html?id='.$image['id'].'">';
      					echo '<img src="'.$imagesrc.'" alt="'.$image['title'].'" width="'.$imagesize.'" height="'.$imagesize.'" />';
      					echo '</a></li>';
      									echo '</ul>';

      That will show a grid of images.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Instagram for WordPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic