List content
fabrement-list-contentList content — pages, posts or any type — to find ids and see what exists: id, title, postType, status, url, editUrl, terms, parent, menuOrder. parent lists one level of a hierarchical type (0 = top level). title answers "does a page called X exist", slug is the exact lookup, search scans content too. Search BEFORE creating: a second "About" beside the existing one is the usual failure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ONE record by id — the other filters are ignored, and `postType` defaults to "any". The lookup for a known page. | |
| slug | No | Exact URL slug (post_name) — the precise "does this exist" lookup. | |
| limit | No | ||
| title | No | Match the TITLE only (substring, case-insensitive). | |
| parent | No | Only the direct children of this record; 0 = only top-level records. Omit for every level. | |
| search | No | Match against title AND content — broad; use `title` when you mean the title. | |
| status | No | "any" (default), publish, draft, pending, private, trash. "any" never includes the trash — records deleted without force are found only with "trash". | |
| orderby | No | "modified" (default, newest first) | "menuOrder" (the site's own order of siblings, then title) | "title" (A→Z). | |
| postType | No | Public post type, or "any". Default "page". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| total | Yes | Matches before the limit. |