Step 19: WordPress Publish (2026 Guide)
Auto-publish the finished article directly to your WordPress site.
All 18 previous steps have prepared a publication-ready article, complete with RankMath meta fields, JSON-LD schemas, and internal links. Step 19 — WordPress Publish — delivers it directly to your WordPress site in a single automated action, with zero copy-pasting, zero manual configuration, and zero missed metadata.
This step connects to your WordPress REST API using the credentials stored in your Sites Manager, creates the post with the full HTML body, sets every SEO meta field via RankMath's REST endpoint, assigns categories and tags, uploads any generated images, and — if configured — publishes immediately or saves as a draft for editorial review. The entire process takes under 30 seconds for a 3,000-word article that would take a human publisher 15–20 minutes to configure manually.
What Gets Published and How
The step19-publish.ts module makes a sequence of WordPress REST API calls:
title: Article title (H1 heading from the outline)content: Full HTML article body from Step 17status:publish(live) ordraft(review queue) — configured per projectslug: URL-friendly version of the title (auto-generated, keyword-first)categories: Category IDs from your WordPress installationtags: Tag IDs (created if they don't exist)excerpt: First 50 words of the article
- All meta fields from Step 18: SEO title, meta description, focus keyword, secondary keywords, OG/Twitter tags
- JSON-LD schema (Article, FAQPage, HowTo as applicable)
- Canonical URL
- If a generated or selected image is configured, uploads to WordPress media library
- Sets as the post's featured image
- Writes alt text from Step 18
- Any additional ACF (Advanced Custom Fields) or custom post meta specified in the site configuration
- Useful for theme-specific fields like subtitle, hero image credit, reading time
Output of This Step
Live published WordPress post with full HTML content, RankMath meta fields, featured image, and JSON-LD schemas.
💡 Pro Tips
- →Always publish to "draft" first for your first few articles per site, then switch to "publish" once you've validated the output quality meets your standards.
- →Set up WordPress Application Passwords (not your main password) for seorankar.com API access — they can be revoked independently and limit scope.
- →Configure your WordPress permalink structure to `/%postname%/` before publishing — seorankar.com generates keyword-first slugs that only work with custom permalink structures.
- →Categories and tags should be configured in your Sites Manager before publishing — seorankar.com can auto-assign based on article topic when IDs are mapped.
Frequently Asked Questions
Q: Is the WordPress REST API secure for this use?
Yes. seorankar.com uses WordPress Application Passwords (available since WordPress 5.6) which are purpose-specific, revocable credentials that don't expose your main admin password. All API calls are made over HTTPS.
Q: Can seorankar.com publish to multiple WordPress sites?
Yes. The Sites Manager supports multiple WordPress sites. Each project is linked to one site, but you can run the same pipeline for different keywords targeting different sites.
Q: What happens if the WordPress API call fails?
The publish step includes retry logic (3 attempts with exponential backoff). If all retries fail, the article is saved locally in the project JSON with a `publishFailed` status flag, and you can retry the publish step independently without re-running the entire pipeline.
Ready to automate your SEO pipeline?
seorankar.com runs all 20 steps automatically — from keyword research to WordPress publish.