List Custom Posts
wp_list_custom_postsList items of any post type using its REST base (e.g. "portfolio", "testimonials", "products"). Use wp_list_post_types first to discover available post types and their rest_base.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number | |
| order | No | ||
| search | No | Search term | |
| status | No | Filter by status (default: publish) | |
| orderby | No | ||
| site_id | No | Site ID to target (optional if you have only one connected site) | |
| per_page | No | Number of items (default 20, max 100) | |
| rest_base | Yes | REST base of the post type (e.g. "portfolio", "events"). Get this from wp_list_post_types. |