Remove Load More button from WordPress Media Library

Ditch the 'Load More' button in your WordPress media library and bring back the joy of endless scrolling for your multimedia items! 🚀

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! 🎉

Did you know that by sharing this article you are helping me? Thanks for your support.
Tom Robak
Tom Robak

Tom Robak is a digital expert with over a decade of experience, specialising in WordPress, SEO, e-commerce, and optimising web performance. His unique skill set, rooted in sales, marketing, and photography, establishes him as a leading creator of customised online solutions.

Grab Your Web Wonders Digest!

Join my newsletter adventure for exclusive WordPress tips, SEO secrets, marketing insights, and some fun stories directly in your inbox!

Leave a Reply

Your email address will not be published. Required fields are marked *

Ready for your new website?

Feel free to book a free consultation, or just drop me an email. I'm excited to chat with you!

Free initial consultation

Write an email