Support » Plugin: Social Feed Gallery » limit only 12 image

  • Resolved germanx32

    (@germanx32)


    hi, setting limit in gallery 18, but its shows only 12.
    but if i set display by tag its working fine

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,
    in the previous API there were 18 images/page. but last month API is updated, and now there are 12 image/page. so sorry, i have forgot to update limit.

    can this be increased? any reason why its limited to 12?

    API have 12 images per page/request. but i will try to increase limit in future.

    “API have 12 images per page/request. but i will try to increase limit in future.”

    Any chance to increase limit in near future? 🙂

    Maybe you should add normal authorisation option (acces token etc)?

    Nice plugin!

    How to Allow more than 12 Image limitation:

    Modify this two file. it works for me

    Step 1: Plugin Editor “Built Into WordPress”

    Go to Plugins and there should be a Plugin Editior, Whichs allows you to modify the Plugins.

    Go to wp-admin/plugin-editor.php

    Step 2: Modify this file

    insta-gallery/app/wp-front.php

    Look for:

    $IGItem[‘insta_limit’] = (($IGItem[‘insta_limit’] > 0) && ($IGItem[‘insta_limit’] <= 12)) ? $IGItem[‘insta_limit’] : 12;

    CHANGE THE 12 Limit to what ever you want.

    Example

    $IGItem[‘insta_limit’] = (($IGItem[‘insta_limit’] > 0) && ($IGItem[‘insta_limit’] <= 250)) ? $IGItem[‘insta_limit’] : 250;

    ——————————-

    insta-gallery/app/views/edit.php

    <td><input name=”insta_limit” type=”number” min=”1″ max=”12″
    value=”<?php if(!empty($InstaGalleryItem[‘insta_limit’])){echo $InstaGalleryItem[‘insta_limit’]; } else {echo ’12’; }?>” /> <span class=”description”><?php _e(‘number of pictures to display (max: 12)’,’insta-gallery’); ?></span></td>

    Again, Change Value of 12 to what ever you want

    Example:

    <td><input name=”insta_limit” type=”number” min=”1″ max=”300″
    value=”<?php if(!empty($InstaGalleryItem[‘insta_limit’])){echo $InstaGalleryItem[‘insta_limit’]; } else {echo ‘300’; }?>” /> <span class=”description”><?php _e(‘number of pictures to display (max: 300)’,’insta-gallery’); ?></span></td>

    ———————

    To make things easy,
    When you open the two file. just search for ” 12 ” and it should show you all the possible value to change.

    Have fun, FYI Disasble AUTO update on this Plugin. If it takes an update. it will overides this file back to default.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘limit only 12 image’ is closed to new replies.