• Resolved CMProduct

    (@ddapparel)


    Hello,

    This is a really great plugin, it does basically exactly what I want it to do – and it seems to work really well. I would like the ability to search for files and be able to move the files that it found but I suppose that would be a different topic.

    My current question is if there is a limit on the number of files a folder can have showing in WordPress? I have a folder on the server with around 2000 files (before regenerated images) and it’s only showing 499 in the Media Library Folders plugin. The DB table (mgmlp_folders) shows all 2000 are assigned the same folder ID (33), but in the wp admin I can only see up to 499. Hopefully this makes sense? Am I missing pagination somewhere?

    If not, is it possible to remove that limit?

    Thank you in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter CMProduct

    (@ddapparel)

    Awesome, I took a look through the code out of curiosity and I was able to solve this issue with three line changes in the media-library-plus.php file (for anyone else running into this issue):

    $images_pre_page = get_option(MAXGALLERIA_MLP_ITEMS_PRE_PAGE, ‘500’);
    $images_pre_page = ‘500’;

    The first line is actually in two places, I changed the number for both. So three lines just needed a simple number change. With quick testing I don’t see any regression so far. I’ll mark this solved after a bit more testing.

    Seems like an arbitrary number, maybe for lower server resources? If so, maybe putting an easily changeable option in the settings would be super helpful for others – because I thought it was a bug. Or AJAX pagination or something.

    Plugin Author AlanP57

    (@alanp57)

    There is no need to edit the plugin code. The number of files that can be displayed in a folder can be changed in the plugin’s settings. The reason that there is a limit is that some users wanted to move files from a folder containing many hundreds of files, but there were too many files for a browser to display. Adding a limit that could be changed allowed one manage the number of files to display without crashing the browser.

    Thread Starter CMProduct

    (@ddapparel)

    Ah cool, I missed that somehow. Thanks for the quick response and great plugin! Will most likely be buying the pro version in the future.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘File Limit Per Folder?’ is closed to new replies.