WordPress.org

Ready to get started?Download WordPress

Forums

Instagram for WordPress
more photos (2 posts)

  1. theapposite
    Member
    Posted 7 months ago #

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

    http://wordpress.org/plugins/instagram-for-wordpress/

  2. raacademy
    Member
    Posted 6 months ago #

    Edit your CSS to include (wpinstagram.css)

    display: inline;
    float: left;

    Under

    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>';
      				endforeach;

      That will show a grid of images.

Reply

You must log in to post.

About this Plugin

About this Topic