Remote OpenClaw Blog
OpenClaw + WordPress: Automated Content Publishing
5 min read ·
Remote OpenClaw Blog
5 min read ·
WordPress powers over 40% of all websites. For content teams, connecting OpenClaw to WordPress automates the most tedious parts of the publishing workflow: formatting drafts, setting SEO metadata, scheduling posts, managing categories and tags, and uploading media.
Tested in production with a content team publishing 15+ articles per week, the OpenClaw-WordPress integration cut publishing time per article from 25 minutes to under 5 minutes. The AI agent handles all the CMS busywork while writers focus on creating content.
This guide covers self-hosted WordPress (WordPress.org) setup, which is the most common and flexible option. For managing content across both WordPress and social media, combine this with the LinkedIn integration. New to OpenClaw? Start with the beginner setup guide.
https://yoursite.com/wp-json/wp/v2/.In WordPress admin, go to Users > Profile > Application Passwords:
# Store WordPress credentials
export WP_SITE="https://yoursite.com"
export WP_USER="your-admin-username"
export WP_APP_PASSWORD="xxxx xxxx xxxx xxxx xxxx xxxx"
# Verify the connection
curl -s -u "$WP_USER:$WP_APP_PASSWORD" \
"$WP_SITE/wp-json/wp/v2/posts?per_page=1" | jq '.[0].title.rendered'
# ~/.openclaw/config.yaml
integrations:
wordpress:
site_url: ${WP_SITE}
username: ${WP_USER}
app_password: ${WP_APP_PASSWORD}
default_status: "draft" # draft, publish, or future
default_author: 1 # WordPress user ID
skills:
- name: wordpress-publisher
trigger: "wordpress"
actions:
- create_post
- update_post
- schedule_post
- upload_media
- manage_categories
- update_seo
# Install the WordPress skill
openclaw skill install wordpress-publisher
# Test creating a draft post
openclaw run "Create a WordPress draft post titled 'Test Integration Post' with a short paragraph of content, category 'Uncategorized', and tag 'test'"
# Test listing recent posts
openclaw run "List the 5 most recent WordPress posts with their status and publish date"
openclaw run "Take this markdown article and publish it as a WordPress draft:
- Generate an SEO-optimized title (under 60 characters)
- Write a meta description (155 characters)
- Set the category to 'Tutorials'
- Add relevant tags based on the content
- Set a featured image from the Media Library that matches the topic
- Schedule for next Tuesday at 9am EST"
openclaw run "Read the content calendar from the Airtable 'Blog Posts' table. For each post marked as 'Ready for Publishing', create a WordPress scheduled post with the title, content, category, and publish date from the Airtable record. Update the Airtable status to 'Scheduled'."
OpenClaw can audit existing posts for SEO issues and batch-update meta descriptions, alt text, and internal links across your WordPress site.
Application passwords require Basic auth over HTTPS. If your site does not use HTTPS, application passwords will not work. Also verify that application passwords are enabled (some security plugins disable them).
Marketplace
Free skills and AI personas for OpenClaw — browse the marketplace.
Browse the Marketplace →If /wp-json/wp/v2/ returns a 404, check your permalink settings. The REST API requires "pretty" permalinks — go to Settings > Permalinks and select any option except "Plain."
Posts created via API default to the status you set in the config. If you set default_status: "draft", posts will not be visible on the frontend until published. Verify the post status in the WordPress admin.
WordPress restricts file types by default. If an image upload fails, check that the file type is in WordPress's allowed mime types. Some hosting providers also set upload size limits (commonly 2MB or 8MB).
For the official WordPress REST API docs, see developer.wordpress.org/rest-api.
Yes, with differences. Self-hosted WordPress (WordPress.org) uses the built-in REST API with application passwords. WordPress.com hosted sites use the WordPress.com REST API v2 with OAuth. The self-hosted option gives you more control and no API restrictions.
OpenClaw can generate SEO titles, meta descriptions, focus keywords, and alt text for images. If you use Yoast SEO or Rank Math, OpenClaw can update their custom fields through the REST API. However, it cannot access Yoast's readability analysis directly — that runs client-side in the WordPress editor.
You control this in your configuration. By default, OpenClaw creates posts as drafts so you can review before publishing. You can change this to publish immediately, schedule for a future date, or use a custom workflow with a review step.
Yes. OpenClaw can upload images to the WordPress Media Library and set them as featured images or inline content images. It can also generate alt text and captions for uploaded images. File uploads are limited to the types allowed by your WordPress configuration.