Search across the site
search_siteSearch all content types in a WordPress site at once using the native search index, with results classified by type.
Instructions
Search every searchable content type at once using WordPress's own search index, returning what type each hit belongs to. Broader than list_content's per-type search.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Which page of results to return. | |
| type | No | Search content, taxonomy terms, or post formats. | post |
| query | Yes | What to search for. | |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. | |
| subtype | No | Restrict to one post type or taxonomy. | |
| per_page | No | Results per page. |