Get WordPress Post
wp_get_postFetch a blog post by ID or slug and get its full content as plain text with HTML stripped, available in markdown or JSON format.
Instructions
Fetch a single blog post by ID or slug. Returns the full content of the post (rendered to plain text — HTML stripped).
At least one of 'id' or 'slug' must be provided.
Args:
id (number): Numeric post ID. Mutually exclusive with slug.
slug (string): URL handle of the post. Mutually exclusive with id.
response_format (enum): markdown | json. Default 'markdown'.
Returns: A single WPContentItem object with the full content_preview field expanded to up to 500 characters of plain-text content. For full content, the JSON response includes the original raw body.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Numeric post ID. Either id OR slug is required. | |
| slug | No | Post slug (URL handle). Either id OR slug is required. | |
| response_format | No | Output format: 'markdown' for human-readable, 'json' for machine-readable. | markdown |