Post to WordPress from Codex
Codex can publish to WordPress through Postiz. Install the Postiz skill or add the Postiz MCP server to Codex, connect your WordPress site in Postiz, then give Codex the content or a markdown file. It sets the title, chooses post or page, uploads the featured image, and schedules the entry on your site.
Please make sure there is always a human in the loop.
Last updated: September 2026
How do I post to WordPress from Codex?
Set up Codex once with the Postiz skill or the Postiz MCP server, connect WordPress in Postiz, then ask. The whole setup takes a few minutes.
Setup, then just ask
# One-time setup, option A: Postiz skill + CLI
npx skills add gitroomhq/postiz-agent
export POSTIZ_API_KEY=your_api_key # or: postiz auth:login
# One-time setup, option B: Postiz MCP server (OAuth, no key)
codex mcp add postiz --url https://mcp.postiz.com/mcp-oauth-dynamic
codex mcp login postiz
# Then just ask Codex:
> Publish this post on WordPress with
a featured image, tomorrow at 9am
Codex: Done! Your WordPress post is scheduled.WordPress-Specific Features
Posts & Pages
Create both blog posts and static pages. Just say which one you want.
Featured Images
Upload and set featured images for your posts and pages. Eye-catching thumbnails drive more clicks from your site.
Content Management
Manage your WordPress content by asking Codex. Create, schedule, and organize posts without touching the admin panel.
Scheduled Publishing
Schedule posts and pages for future publication with precise timestamps. Plan your content calendar in advance.
AI-Powered Workflows
Let AI agents draft, format, and publish your WordPress content. From idea to published post without manual intervention.
Multi-Site Support
Connect multiple WordPress sites and publish to any of them. Manage all your sites from a single Postiz account.
How does Codex post to WordPress?
You describe what you want in plain language and Codex handles the Postiz calls for you. Here is how a typical conversation goes.
Find Your WordPress Integration
Ask Codex whether your WordPress account is connected. It also checks which options the platform supports.
Example conversation
> Is my WordPress account connected to Postiz?
Codex: Yes — your WordPress account is connected
and ready. Want me to post something?Prepare Your Content
Write your content and optionally upload a featured image. WordPress supports HTML content for rich formatting.
Example conversation
> Draft a WordPress post about our new
feature launch
Codex: Here's a draft for WordPress:
"We just shipped something big..."
Want me to add media and schedule it?Create Your Post
Create a WordPress post or page with your content, title, featured image, and content type settings.
Example conversation
> Yes — add screenshot.png and schedule
it for tomorrow at 9am
Codex: Done! Scheduled on WordPress for
tomorrow at 9:00 AM.WordPress Settings Reference
Mention any of these in plain language and Codex sets them for you. These are the WordPress options it can apply to any post.
| Field | Type | Description |
|---|---|---|
__type | string | Must be "wordpress" |
title | string | Post or page title (min 2 characters) |
main_image | object | Featured image: {id: string, path: string} |
type | string | Content type: "post" or "page" |
Common Configurations
Ask Codex for any of these common WordPress publishing scenarios and it applies the matching settings.
Simple Blog Post
Just ask
> Post it with: Simple Blog Post
Codex: Got it. Applying:
title: Getting Started with WordPress Automation
type: postBlog Post with Featured Image
Just ask
> Post it with: Blog Post with Featured Image
Codex: Got it. Applying:
title: 10 Tips for Better Code Reviews
main_image: id=img-abc123, path=https://uploads.postiz.com/code-reviews.jpg
type: postStatic Page
Just ask
> Post it with: Static Page
Codex: Got it. Applying:
title: About Our Company
main_image: id=img-xyz789, path=https://uploads.postiz.com/about-hero.jpg
type: pageWhat is Codex?
Codex is OpenAI's coding agent. It runs as the Codex CLI in your terminal (npm install -g @openai/codex), as an IDE extension, and in the cloud, and it can run shell commands and call MCP servers, which is how it drives Postiz. Codex is not ChatGPT: ChatGPT is the chat assistant on chatgpt.com and connects to Postiz differently (see the ChatGPT guide). For the full setup, start at the Codex + Postiz hub.
Terminal & IDE Native
Codex runs in your terminal or IDE. You type what you want in plain English and it handles Postiz for you — no extra configuration needed.
Autonomous Execution
Codex runs commands inside a sandbox with approval rules you control, and works through multi-step tasks like discovering channels, uploading media, and scheduling WordPress posts.
Parallel Tasks
Run multiple Codex tasks simultaneously. Schedule posts to different platforms in parallel while Codex handles other coding work.
How Postiz Works with Codex
Codex discovers Postiz two ways: the postiz skill, which it loads from .agents/skills or ~/.agents/skills and which you can invoke with $postiz, or the Postiz MCP server added with codex mcp add. Either way it learns the available tools and chains them for WordPress workflows.
- ✓Install the Postiz skill with npx skills add, or add the Postiz MCP server with codex mcp add
- ✓Codex loads skills from .agents/skills and reads SKILL.md to learn the Postiz CLI
- ✓Authenticate with POSTIZ_API_KEY or postiz auth:login; the MCP route uses OAuth instead
- ✓Codex runs commands in its sandbox and asks for approval based on your permission settings
- ✓Works alongside your coding tasks in parallel
Install Postiz
# Install the Postiz skill
npx skills add gitroomhq/postiz-agent
# Set your API key
export POSTIZ_API_KEY=your_api_key
# Or add the Postiz MCP server instead (OAuth, no API key)
codex mcp add postiz --url https://mcp.postiz.com/mcp-oauth-dynamic
codex mcp login postiz
# Then ask, interactively or headless
codex "list my social media integrations"
codex exec "post today's changelog to WordPress"WordPress Publishing with Codex
Tell Codex what to post from your terminal or IDE — it discovers your integrations via Postiz and handles the entire publishing workflow.
Just Ask Codex
Terminal and IDE integration
Tell Codex what to post from your terminal or IDE — it discovers your integrations via Postiz and handles the entire publishing workflow.
Codex CLI
$ codex "Post to Wordpress about our
new feature launch, schedule for
tomorrow at 9am"
Codex: I'll handle that.
Found your Wordpress integration.
Composing and scheduling the post.
Done! Your post is scheduled.
Post ID: abc-123Parallel Tasks
Multiple tasks at once
Codex can handle multiple tasks in parallel. Schedule posts to different platforms while it works on other coding tasks simultaneously.
Codex Parallel Tasks
# Run multiple posting tasks in parallel
$ codex "Schedule a post about our
launch to X for tomorrow 9am" &
$ codex "Write a LinkedIn article
about our new feature and schedule
for tomorrow noon" &
$ codex "Fix the bug in auth.ts"
# All three tasks run simultaneouslyWhy Codex + Postiz for WordPress
Codex's autonomous execution makes Postiz a natural fit. The agent reads the SKILL.md to understand every available command, then autonomously chains them together for WordPress workflows.
- ✓Runs in your terminal or IDE — just type what you want
- ✓Autonomous execution in sandboxed environments
- ✓Parallel task support — post while coding
- ✓Featured images uploaded and attached automatically
- ✓Cross-post to WordPress + other platforms in a single session
- ✓Powered by OpenAI's most capable models
SKILL.md (loaded by Codex from .agents/skills)
---
name: postiz
description: Social media automation
CLI for scheduling posts across
30+ platforms including WordPress
homepage: https://docs.postiz.com/public-api/introduction
---
# Loaded by Codex from .agents/skills
# Invoke explicitly with $postiz
# Available Commands
- postiz integrations:list
- postiz integrations:settings <id>
- postiz posts:create
- postiz upload <file>
- postiz analytics:platform <id>
# WordPress Settings
title, main_image, typeAlso Works with Claude Code
Postiz works with any AI agent that can run commands or call MCP tools — you ask, the agent does the work. That includes Anthropic's Claude Code: see the Claude Code WordPress guide, or the Postiz Agent page for any other agent.
Claude Code
by Anthropic
Claude reads the Postiz skill so it knows what it can do, then autonomously discovers your WordPress integration, uploads your featured image, sets the content type, and publishes the post.
Claude Code
> Publish my code review tips article
to WordPress as a blog post with
a featured image
Claude: Done! Scheduled on WordPress for
tomorrow at 9:00 AM.Can Codex post to WordPress and other platforms at once?
Publish the same content to WordPress and other platforms in a single request. Each platform gets its own settings.
Example
> Post "Excited to announce our new feature!" to
WordPress and LinkedIn tomorrow at 9am, then schedule
a daily tip on WordPress every weekday at 10am
Codex: Done! Scheduled:
- WordPress + LinkedIn: tomorrow 9:00 AM
- Daily tips on WordPress: Mon-Fri 10:00 AMWhat can I ask Codex to post on WordPress?
Codex takes plain-English prompts in an interactive session, as a one-off codex exec command, or through the $postiz skill. These are the kinds of prompts people type for WordPress.
Prompts for WordPress
> Publish ./posts/release-2-4.md as a WordPress post with
./assets/hero.png as the featured image, tomorrow 9am
$ codex exec "Create a WordPress page titled 'Changelog' from CHANGELOG.md
and publish it now"
> $postiz Schedule the three drafts in ./content/blog as WordPress
posts on Monday, Wednesday, and Friday at 10amWhat WordPress rules should Codex follow?
These are the WordPress limits and required settings Postiz enforces. Codex reads them from postiz integrations:settings, and you can mention any of them in your prompt.
- ✓title is required, at least 2 characters.
- ✓type is required: post for blog entries or page for standalone pages.
- ✓The featured image goes through postiz upload, then main_image takes its id and path.
- ✓The body of your prompt or file becomes the post content.
Codex and WordPress FAQ
How do I post to WordPress from Codex?
Install the Postiz skill with npx skills add gitroomhq/postiz-agent, or add the Postiz MCP server with codex mcp add postiz --url https://mcp.postiz.com/mcp-oauth-dynamic. Connect WordPress in Postiz once, then ask Codex in plain English what to post and when. Codex resolves the WordPress settings, uploads any media, and schedules the post.
Can Codex create WordPress pages as well as posts?
Yes. The type setting takes post or page, and Codex picks it from your wording. Posts show up in your blog feed and RSS; pages are standalone, like a changelog or landing page. Both accept a title and a featured image, and both can be scheduled for a later publish time.
How does Codex add a featured image to a WordPress post?
Codex runs postiz upload on the image file and passes the returned id and path in the main_image setting. WordPress then uses it as the featured image for the post or page. Local paths and external URLs are not accepted directly, so the upload step always happens first.
Can Codex post to WordPress on a schedule without me watching?
Yes. Postiz stores scheduled WordPress posts and publishes them at the chosen time, so Codex does not need to stay open. For unattended runs, call codex exec with your prompt from a script or cron job. Keep a human reviewing the output, since Codex will publish exactly what it is told to publish.
Do I need a Postiz API key to post to WordPress from Codex?
Not with the MCP route. Run codex mcp login postiz and Codex signs in to your Postiz account over OAuth, so it only reaches channels you already connected, including WordPress. The CLI skill route needs either postiz auth:login or a POSTIZ_API_KEY environment variable. Your WordPress login itself never leaves Postiz.
Is posting to WordPress from Codex the same as posting from ChatGPT?
No. Codex is OpenAI's coding agent for your terminal and IDE, and it reaches Postiz through the Postiz skill or MCP server. ChatGPT is the chat assistant on chatgpt.com, which connects to Postiz as an app or custom MCP connector. Both can publish to WordPress; see the ChatGPT guide for that setup.
Related Codex and WordPress guides
Start at the Codex hub for setup, or jump to another platform Codex can post to through Postiz.
Codex + Postiz overview
→Setup, skill vs MCP comparison, codex exec automation, and FAQ for OpenAI Codex.
Post to Medium from Codex
→Medium settings, prompts, and rules for Codex.
Post to Dev.to from Codex
→Dev.to settings, prompts, and rules for Codex.
Post to Hashnode from Codex
→Hashnode settings, prompts, and rules for Codex.
Post to LinkedIn from Codex
→LinkedIn settings, prompts, and rules for Codex.
WordPress channel on Postiz
→How Postiz connects to WordPress, features, and setup outside of any agent.
Postiz MCP server
→The OAuth MCP endpoint Codex, ChatGPT, Claude, and Cursor can all connect to.
Postiz Agent CLI
→The postiz CLI and skill that any AI agent can drive from a shell.
Post to social media from ChatGPT
→The chat-app route, for when you are not in a terminal.
Postiz pricing
→7-day free trial, with MCP, CLI and API access on every plan.
Start publishing to WordPress
Install Postiz Agent and automate your WordPress content strategy with AI-powered scheduling and publishing.