Alright, WordPress wizards! 🧙♂️ With the arrival of the WordPress 5.8 update, a feature that has bloggers rolling their eyes made its debut – the “load more” button. Of course, updating WordPress is cool and all, and it’s great that you’re keeping your site fresh, but since version 5.8, our beloved media library said goodbye to the bliss of infinite scrolling.
Now, WordPress in the media library only flaunts 40 items, and below, there’s this “load more” button. It’s a bit of a party pooper because you have to keep pressing this button to see the next forty multimedia elements. 🙄
But, fear not, WordPress warriors! 🦸♂️ You can swiftly flip the script and rekindle the endless media loading romance. Just sprinkle the code below into your functions.php
file, and voilà!
add_filter( 'media_library_infinite_scrolling', '__return_true' );
This magical spell banishes the ‘load more’ button and revives the automatic loading in the media library. 🌟
And for all you plugin aficionados, there’s a plugin for this too! So, whether you’re a code guru or a plugin enthusiast, say adios to the annoying ‘load more’ button and let the endless scrolling party begin! 🎉