Support » Plugin: WordPress Gallery Plugin - NextGEN Gallery » Bulk Recreate Thumbnails (I have 2000 galleries)

  • Resolved remotay

    (@remotay)


    Anyway to bulk queue up thumbnail regeneration? I want to change the size of all my thumbnails to something a bit smaller but i have 2,000 galleries (80 pages of them). I’d like to queue it up so its done overnight or something.

    Anyway to do this? Appreciate the help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • I did this once before. To do it, I edited line 13 of the manage-galleries.php file (found in \wp-content\plugins\nextgen-gallery\products\photocrati_nextgen\modules\ngglegacy\admin\) to show all the galleries on a single page of the Manage Galleries screen. I had 1500+ galleries, so I changed mine to “$items_per_page = 2000”.

    Then, once all galleries were shown on one page, I could select them all at once and bulk create new thumbnails.

    Plugin Author photocrati

    (@photocrati)

    @remotay – Although the idea presented by @postmastergs may work we do not recommend modifying core plugin code; but, we have added a hook which you can use to accomplish much the same thing as described.

    Using something along the lines of add_filter( 'ngg_manage_galleries_items_per_page', 'my_callback_function' ); where the callback function returns an integer value should accomplish the same thing.

    You can add this temporarily to your theme’s functions.php file or if you use a “site plugin” you might consider adding it there.

    Thanks!

    – Cais.

    Thread Starter remotay

    (@remotay)

    Thanks so much! Love this plugin! Problem solved.

    Plugin Author photocrati

    (@photocrati)

    @remotay – Thanks for the update!

    – Cais.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Bulk Recreate Thumbnails (I have 2000 galleries)’ is closed to new replies.