Skip to content

Search, sort, and infinite scroll

Find and browse efficiently

Search

The search input sits in the filter row (MediaToolbar). Typing triggers a debounced request (e.g. 300-400 ms) to the WordPress media API. Results are filtered by filename, title, alt, or caption (depending on backend). The list updates, and the folder filter can stay or clear (see "Results outside folder" in Folder sidebar).

Quickly find a file by name or caption without scanning the grid.

Sort

Options in the filter-row dropdown: Newest first, Oldest first, Title A-Z, Title Z-A. Changing sort updates the API query (e.g. orderby=date / order or orderby=title) and refreshes the list. In grid view, every page of the infinite-scrolled list uses the same order.

Bring recent uploads to the top or alphabetize by title.

Infinite scroll (grid view)

When you scroll near the bottom of the grid, an IntersectionObserver (or similar) loads the next page of results (e.g. page 2, 3, …). New items append to the grid. A spinner or skeleton can show at the bottom until the next page is ready.

The API uses per_page and paged (or offset). The same filters (folder, type, search, sort) apply to every page so the list stays consistent.

Browse large libraries without clicking "Next page"; just scroll.