title: Nexgen gallery wordpress not showing images
body: <p>I have updated the Nexgen gallery plugin and it stop showing the galleries on the page which I am getting by custom PHP code.</p>
  
  <p>Here is code which I am using for getting gallery.</p>
  
  <pre><code>$nggdb = new nggdb();
  $images = $nggdb-&gt;get_gallery($post-&gt;post_name, 'sortorder', 'ASC', true, 0, 0);
  foreach($images as $i=&gt;$image) {
      // list($originalWidth, $originalHeight) = getimagesize($image-&gt;url);
      // $ratio = (float)$originalWidth / $originalHeight;
  
      // if($ratio &gt; 1.2) {
          // $class = "width-2";
      // } else {
          // $class = "";
      // }
  
      ?&gt;
      &lt;a class="fancybox" href="&lt;?php echo $image-&gt;imageURL; ?&gt;"&gt;
          &lt;div class="grid-item col-md-3  col-sm-6 col-xs-12"&gt;
              &lt;img src="&lt;?php echo $image-&gt;thumbnailURL; ?&gt;" /&gt;
              &lt;?php
              if($image-&gt;_ngiw-&gt;_cache['description'] != "") {
                  ?&gt;
                  &lt;div class="title"&gt;
                      &lt;?php echo $image-&gt;_ngiw-&gt;_cache['description']; ?&gt;
                  &lt;/div&gt;
                  &lt;?php
              }
              ?&gt;
          &lt;/div&gt;
      &lt;/a&gt;
      &lt;?php
  }
  
  ?&gt;
  </code></pre>