Filter posts by custom field values

How to get there: Click All Posts in the sidebar → open the filter sidebar on the left → scroll to the Custom Fields section.

If you've defined custom fields on your post types (such as Browser, Severity scope, or Reported by on a Bug Report post type), you can filter the admin All Posts list by those field values, the same way you'd filter by status or category.

For setting custom fields up in the first place, see Set up post types and custom fields.

Adding a custom field filter

  1. Open All Posts in the sidebar.
  2. In the filter sidebar, scroll to Custom Fields.
  3. Click Add field filter.
  4. Pick the field from the dropdown (the list contains every custom field across all your post types).
  5. Pick an operator:
    • equals -- matches the exact value
    • contains -- matches any post whose value contains the text you typed
    • is empty -- matches posts that have no value for this field
    • is not empty -- matches posts that do have a value
  6. For equals and contains, type the value to match.

The list re-filters as soon as the row is complete. Multiple rows AND together, so you can chain conditions like "Browser contains Chrome AND Severity equals critical".

Removing a custom field filter

Click the x at the end of any filter row to drop it. The list re-filters immediately.

How it interacts with post types

The filter looks at the raw custom field value, not the post type. A post only matches a row if it actually has that custom field attached (which means its post type defines it). Posts of unrelated post types are silently excluded, which is usually what you want.

Saving the filter

Custom field filter combinations can be saved as a query like any other filter. See Saved queries and filters.