wp_get_post
Retrieve detailed post information including metadata, content statistics, and management links. Optionally fetch full HTML content for editing.
Instructions
Retrieves detailed information about a single post including metadata, content statistics, and management links. Optionally includes full HTML content for editing.
Usage Examples:
• Basic metadata: wp_get_post --id=123
• With full content: wp_get_post --id=123 --include_content=true
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | The ID of the WordPress site to target (from mcp-wordpress.config.json). Required if multiple sites are configured. | |
| id | Yes | The unique identifier for the post. | |
| include_content | No | If true, includes the full HTML content of the post for editing. Default: false |