wordpress-api
WordPress REST API integration for managing posts, pages, media, and more on self-hosted WordPress sites. Use when you need to create, update, or retrieve WordPress content programmatically. Supports Gutenberg blocks, custom fields, featured images, and full CRUD operations. Works with any WordPress site (self-hosted or managed) that has REST API enabled (WordPress 4.7+). Authentication via Application Password (recommended) or Basic Auth. Use for publishing articles, updating content, managing media, batch operations, content migration, or any WordPress admin task via API.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/benkalsky/wordpress-api-skillWhat This Skill Does
The wordpress-api skill for OpenClaw empowers users to manage their WordPress installations programmatically without needing to log into the wp-admin dashboard for every task. By leveraging the WordPress REST API, it provides a comprehensive interface for content lifecycle management, including creating, updating, and retrieving posts, pages, and media. Whether you are managing a single personal blog or a vast network of sites, this skill allows for granular control over content, support for Gutenberg blocks, custom meta fields, and featured image manipulation. It includes a sophisticated multi-site wrapper that enables users to execute bulk operations across entire groups of websites, significantly reducing administrative overhead and ensuring consistency across digital properties.
Installation
To install this skill, use the OpenClaw command-line interface. Execute the following command in your terminal:
clawhub install openclaw/skills/skills/benkalsky/wordpress-api-skill
Once installed, ensure you have configured your Application Passwords within the WordPress admin dashboard (found under Users > Profile). For multi-site management, copy the provided config/sites.example.json to config/sites.json and populate it with your specific site credentials to leverage the --group functionality.
Use Cases
- Content Migration: Bulk-update post content or meta data across multiple sites simultaneously.
- Automation: Periodically publish scheduled articles from external data sources.
- Site Management: Programmatically update SEO meta fields, statuses, or categories for large volumes of posts.
- Monitoring: Fetch post data, comment counts, or media library information to compile reports or logs.
Example Prompts
- "OpenClaw, using the wordpress-api skill, publish a new post on the 'digitizer-studio' site with the title 'New Tech Trends' and set the status to publish."
- "Update the 'seo_score' meta field to '95' for post ID 123 on all sites currently in the 'digitizer' group."
- "Retrieve the last 5 posts from my main blog site and summarize the recent activity."
Tips & Limitations
- Security: Always use Application Passwords rather than standard login credentials. These passwords can be revoked individually if compromised.
- REST API: Ensure your WordPress site is running version 4.7 or higher, as this is the baseline for the REST API functionality.
- Rate Limiting: If performing mass batch updates, consider implementing delays to avoid hitting hosting-provider-imposed API rate limits.
- Permissions: The API user account must have appropriate roles (e.g., Editor or Administrator) to perform the specific requested actions.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-benkalsky-wordpress-api-skill": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, external-api, code-execution