Search across the site
search_siteSearch across every WordPress content type in one query, using the site's own search index, and get each hit's type (post, term, or format).
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. |