Publishing Options
Option 1: WordPress REST API (Automated)
Publish directly to WordPress as drafts with all SEO metadata automatically populated. Best for:- Teams with WordPress sites
- Automated workflows
- Yoast SEO users
- High-volume content production
Option 2: Manual File Management
Manage content files locally and publish through your existing CMS workflow. Best for:- Non-WordPress sites
- Editorial review processes
- Multi-step approval workflows
- Custom publishing pipelines
WordPress Publishing Workflow
Prerequisites
Install WordPress Plugin
Install
wordpress/seo-machine-yoast-rest.php as an MU-plugin on your WordPress site. This exposes Yoast SEO fields to the REST API.Add Theme Snippet
Add
wordpress/functions-snippet.php to your theme’s functions.php file for additional API support.Generate Application Password
- Log into WordPress Admin
- Go to Users → Your Profile
- Scroll to “Application Passwords”
- Enter name: “SEO Machine”
- Click “Add New Application Password”
- Copy the generated password
See
wordpress/README.md in the SEO Machine repository for detailed setup instructions.Publishing Commands
Publish Blog Posts
Publish Landing Pages
Publish Custom Post Types
What Gets Published
When you publish to WordPress, the command:Sets Yoast SEO Fields
Populates Yoast SEO metadata:
- SEO Title (from Meta Title)
- Meta Description
- Focus Keyphrase (from Target Keyword)
Metadata Mapping
| Draft Field | WordPress/Yoast Field |
|---|---|
| H1 Title | Post Title |
| Meta Title | Yoast SEO Title |
| Meta Description | Yoast Meta Description + Excerpt |
| Target Keyword | Yoast Focus Keyphrase |
| URL Slug | Post Slug |
| Category | Post Categories |
| Tags | Post Tags |
| Content | Post Content (HTML) |
Adding Categories and Tags
To assign categories or tags, add these fields to your draft frontmatter:WordPress Publishing Checklist
Before publishing to WordPress:- Article has been optimized (
/optimizecommand run) - SEO score ≥ 70 (blog posts) or ≥ 75 (landing pages)
- All priority fixes addressed
- Meta title 50-60 characters
- Meta description 150-160 characters
- Target keyword specified
- Categories/tags specified (if desired)
- Environment variables configured
After Publishing
Add Media
Upload featured image and inline images/screenshots (media is not transferred automatically)
Troubleshooting WordPress Publishing
”WORDPRESS_URL must be set”
Solution: Add credentials to.env file. See Prerequisites section above.
”401 Unauthorized”
Solutions:- Verify username is correct
- Regenerate Application Password
- Ensure user has permission to create posts
- Check that WORDPRESS_URL includes https://
“Could not find category”
Solution: The category will be created automatically. This is a warning, not an error.”Images not showing”
Solution: Images are not uploaded automatically. You must add them manually in WordPress after the draft is created.”Formatting looks wrong”
Solution: WordPress may interpret markdown differently. Use the WordPress editor to adjust formatting after publishing.Manual File Management Workflow
If you’re not using WordPress or prefer a manual workflow, SEO Machine organizes content files for easy management.Directory Structure
Content Lifecycle
Ideation
Directory:
topics/Store raw ideas and preliminary research here. Simple text files with initial thoughts.Research
Directory:
research/Running /research saves briefs here:brief-[topic]-[date].md- Research briefsanalysis-[topic]-[date].md- Existing content analysis
Drafting
Directory:
drafts/Running /write saves articles and reports here:[topic]-[date].md- Main articlecontent-analysis-[topic]-[date].md- Content Analyzer reportseo-report-[topic]-[date].md- SEO Optimizer reportmeta-options-[topic]-[date].md- Meta Creator optionslink-suggestions-[topic]-[date].md- Internal Linker suggestionskeyword-analysis-[topic]-[date].md- Keyword Mapper analysisoptimization-report-[topic]-[date].md- Final optimization report
Review Required (If Needed)
Directory:
review-required/Articles that score below quality thresholds are saved here with:[topic]-[date].md- The article[topic]-[date]_REVIEW_NOTES.md- Issues to fix
Manual Publishing Process
Apply Metadata
Use the metadata from the article frontmatter:
- Meta Title
- Meta Description
- Target Keyword (focus keyword in your SEO plugin)
- URL Slug
- Categories/Tags
File Naming Conventions
SEO Machine uses consistent naming:- Articles:
[topic-slug]-[YYYY-MM-DD].md - Rewrites:
[topic-slug]-rewrite-[YYYY-MM-DD].md - Research:
brief-[topic-slug]-[YYYY-MM-DD].md - Analysis:
analysis-[topic-slug]-[YYYY-MM-DD].md - Reports:
[report-type]-[topic-slug]-[YYYY-MM-DD].md
content-marketing-strategies-2025-03-04.mdemail-marketing-guide-rewrite-2025-03-04.mdbrief-podcast-monetization-2025-03-04.mdseo-report-content-marketing-strategies-2025-03-04.md
Organizing by Status
You can add status indicators to filenames or use subdirectories:Option 1: Status Prefixes
Option 2: Status Subdirectories
Frontmatter Format
All articles include structured frontmatter:Publishing Checklist
Regardless of your publishing method, verify these before going live:Content Quality
- Article meets minimum word count (2000+ for blogs, appropriate length for landing pages)
- Quality score ≥ 70 (blogs) or ≥ 75 (landing pages)
- All priority fixes from optimization report addressed
- Examples and statistics are current and cited
- Brand voice is consistent
- No grammatical or spelling errors
SEO Elements
- Primary keyword in H1
- Primary keyword in first 100 words
- Primary keyword in 2-3 H2 headings
- Keyword density 1-2%
- Meta title 50-60 characters
- Meta description 150-160 characters
- URL slug is optimized (short, includes keyword)
- Proper H1/H2/H3 hierarchy (no skipped levels)
Links
- 3-5+ internal links with descriptive anchor text
- 2-3+ external authority links
- All links tested and working
- Internal links follow user journey (awareness → consideration → decision)
- No broken external links
Media & Formatting
- Featured image added
- Inline images added where appropriate
- All images have alt text with keywords
- Lists use bullets or numbers for scannability
- Key concepts are bolded
- Paragraphs are 2-4 sentences max
- Subheadings every 300-400 words
Technical
- Categories assigned (if applicable)
- Tags assigned (if applicable)
- Focus keyword set in SEO plugin
- Schema markup considered (FAQ, How-To, Article)
- Mobile responsive (preview on mobile)
- Page loads quickly (under 3 seconds)
Before Going Live
- Preview in staging or preview mode
- Check formatting in actual page layout
- Test all CTAs and forms
- Verify social sharing preview (og:image, og:description)
- Set appropriate publish date
- Add to XML sitemap (usually automatic)
Post-Publishing Workflow
After content goes live:Add to Internal Links Map
Update
context/internal-links-map.md with the new URL for future internal linkingTrack Performance
Set up tracking for:
- Organic traffic (Google Analytics)
- Keyword rankings (Google Search Console or rank tracker)
- Conversions/goals
- Engagement (time on page, bounce rate)
Performance Tracking
After 30-60 days, analyze:- Traffic: Did the article attract organic traffic?
- Rankings: Is it ranking for target keywords? Position 1-10?
- Engagement: High time on page? Low bounce rate?
- Conversions: Is it driving sign-ups, demos, or downloads?
- Backlinks: Has it attracted natural backlinks?
- Identify what worked (apply to future content)
- Spot underperformers (candidates for updates using
/analyze-existing) - Prioritize content topics that resonate with your audience
Bulk Publishing
For high-volume content workflows:Batch Publishing to WordPress
Publish multiple articles in sequence:Scheduled Publishing
In WordPress:- Edit each draft
- Set publish date/time in the future
- Click “Schedule”
Editorial Calendar
Track publishing schedule:- Use
published/directory with files named by publish date - Add “Scheduled Publish Date” to frontmatter
- Use project management tools (Trello, Asana, Notion) to track status
- Integrate with WordPress editorial calendar plugins
Best Practices
Version Control
- Keep original drafts even after publishing
- Save copies before major rewrites
- Use git to track changes to markdown files
- Tag published versions in git
Quality Control
- Always run
/optimizebefore publishing - Have a second person review high-priority content
- Preview on mobile and desktop before publishing
- Test all links and CTAs
Workflow Efficiency
- Batch similar tasks (write multiple articles, then optimize all)
- Use templates for common content types
- Create shortcuts for frequent commands
- Automate where possible (scheduled publishing, social sharing)
Documentation
- Keep notes on what works (successful headlines, CTAs, structures)
- Document your publishing workflow for team members
- Track performance metrics in a spreadsheet or dashboard
- Update
context/writing-examples.mdwith your best-performing content
Next Steps
- Learn about Creating Content from scratch
- Explore Updating Content workflows
- Understand Landing Pages for conversions