Skip to content

Type filters and filter row

Filter by type and refine the list

Type filter buttons

  • What they are: A row of filter buttons: All, Photos, Videos, Audio, Documents. Each shows a count (e.g. "Photos 42"). The active filter is highlighted by color.

  • How they work: Clicking a button filters the media list to that type only. Counts come from the folder-stats/type-counts API and reflect the current scope (e.g. all media or the current folder). "Clear" (or similar) appears when a type filter is active and resets to "All".

  • Benefit: Quickly see only images, only videos, or only documents without scrolling.

Filter row (below type tags)

The MediaToolbar in "filter-row" mode appears in the same row or just below the type buttons. It can include:

  • Sort – Dropdown: Newest first, Oldest first, Title A–Z, Title Z–A. Changing sort updates the list immediately.

  • Search – Text input. Typing filters by search term (debounced ~400 ms). Search runs against the WordPress media API (e.g. title, filename).

  • Bulk actions – When at least one item is selected: Delete (batch delete) and Move to folder (dropdown of folders). Actions apply to all selected items.

  • Select all / Clear selection – Toggle select all on the current page or clear selection.

Benefit: Combine type, sort, and search to find exactly what you need; then act on multiple items at once.