Troubleshooting

Agent Can’t Log Into WordPress?

Use the WordPress REST API path instead of browser login so your agent can draft and publish posts reliably.

Community pattern: users ask the agent to "log into WordPress and post" and hit browser-related failures. The fix is usually simple: switch from browser automation expectations to API-based publishing.

Important: most heyron/OpenClaw agents do not have a full visual browser automation stack by default. They can read, write, call APIs, and run tools. For WordPress, API is the reliable lane.

Fast path (4 steps)

1) Confirm your site supports WordPress REST API

Most modern WordPress installs do. Check this URL in your browser:

https://YOUR-SITE.com/wp-json/

If you get JSON output, API is available.

2) Create an Application Password in WordPress

In WordPress admin, go to Users → Profile → Application Passwords. Create one for your agent workflow and copy it once.

3) Give your agent only what it needs
4) Run a tiny draft canary first

Ask your agent to create one draft post titled:

WP_API_CANARY_{{today}}

If that works, then scale to full workflows.

Prompt you can paste to your agent

I need you to publish to WordPress using REST API (not browser automation). Site URL: https://YOUR-SITE.com Username: YOUR_WP_USERNAME Application Password: YOUR_APP_PASSWORD Task: 1) Create one DRAFT post titled "WP_API_CANARY_TEST" 2) Return the post ID + edit URL 3) Do not publish yet 4) If blocked, return exact HTTP status and response body

Common errors and what they mean

Advanced edge cases (high-friction but common)

Known-good recovery prompt (copy/paste)

Do NOT use browser automation. Use WordPress REST API only. Goal: create exactly one draft post and return proof. Connection details: - Site: https://YOUR-SITE.com - Username: YOUR_WP_USERNAME - Application Password: YOUR_APP_PASSWORD Required sequence: 1) GET /wp-json/ and confirm JSON (return first 200 chars) 2) POST /wp-json/wp/v2/posts with: - title: "WP_API_CANARY_TEST" - status: "draft" - content: "API canary" 3) Return ONLY: - HTTP status - post id - edit link - public link 4) If failure, return exact status + raw response body. Do not paraphrase.

Security guardrails (use these)

Don’t do this: "Here are my admin creds, go click around and post anything." That creates security risk and unreliable behavior at the same time.

When to escalate to support

If your canary draft fails, share this exact packet:

Bottom line: for WordPress, treat your agent like an API operator, not a browser clicker. API + canary draft + proof output is the highest-reliability pattern.