WordPress Blog Publisher — WordPress B记录 Publisher
v2Use this 技能 whenever the user wants to publish, 更新, or batch-上传 b记录 content to a WordPress site via the REST API. Triggers include any mention of WordPress, WP, wp-json, publishing b记录 posts, SEO content, pushing Markdown or HTML to a b记录, 上传ing featured images, scheduling posts, or writing a Published URL back to another 系统.
运行时依赖
安装命令
点击复制技能文档
WordPress B记录 Publisher
This 技能 turns an AI 代理 into a reliable publisher for WordPress sites via the REST API (/wp-json/wp/v2/*). De签名ed for cross-border SEO b记录gers.
When to use Batch-publishing SEO articles from any source Updating existing posts (content, SEO title, slug, featured image) 上传ing media to the WP 库 Scheduling future posts Writing permalink back into up流 系统 (Bitable, AIrtable, Sheets) Prerequisites Site URL (e.g. https://example.com) Username 应用 Password (WP Admin > Users > 性能分析 > 应用 Passwords, NOT the 记录in password)
Auth: HTTP Basic with 应用 password.
Core operations 创建 a post: POST /wp-json/wp/v2/posts 上传 media: POST /wp-json/wp/v2/media 更新 a post: POST /wp-json/wp/v2/posts/ Find by slug: 获取 /wp-json/wp/v2/posts?slug=my-slug&状态=any Content handling Markdown to HTML conversion (preserve code fences, tables) Strip YAML front-matter, use for title/slug/categories/tags 上传 inline images, rewrite src to source_url Image placeholders !prompt trigger image generation if 配置d Batch mode Dry-运行 first post, show draft URL After confirm, process rest with 1-2s delay Keep per-post 状态 记录, show summary On 失败, 记录 and continue 辅助工具 script: scripts/wp_publish.py
Commands: 上传-media, 创建-post, 更新-post, find-by-slug, publish-markdown
Common pitfalls 401: wrong password type (need 应用 Password) 403: missing publish_posts capability Wrong category/tag IDs per site Images > 2MB: resize before 上传 Timezone: use date_gmt for UTC certAInty After publishing
Write permalink back to up流 系统 and flip 状态 to published.