Back to WordPress
Connect Knoon AI with WordPress to automate AI workflows.
Get a post/page/custom post type item by postId or slug.
wordpressXmlRpcDefaultDefaultGetPost
BETA
Permissions
There are no items to display.
Optional permissions
There are no items to display.
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| postType | mustache | Optional collection slug. Defaults to posts. | No |
| postId | mustache | Optional WordPress post ID. | No |
| slug | mustache | Optional post slug (used if postId is not provided). | No |
Returns
| Name | Type | Description |
|---|---|---|
| postId | string | WordPress post ID. |
| slug | string | Post slug. |
| status | string | Post status. |
| url | string | Post permalink. |
| title | string | Rendered post title. |
| excerpt | string | Rendered post excerpt HTML. |
| content | string | Rendered post content HTML. |
| featuredMediaId | string | Featured media ID if set. |
| createdAt | string | Post created datetime. |
| updatedAt | string | Post last modified datetime. |