Skip to content

docs(content): document sending pages to WordPress as draft posts (Send to CMS #1331) - #1573

Merged
gkhngyk merged 40 commits into
ansvisor:mainfrom
cihan-gyk:docs/cms-wordpress
Oct 28, 2026
Merged

gkhngyk merged 40 commits into
ansvisor:mainfrom
cihan-gyk:docs/cms-wordpress

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

Summary

Send to CMS, phase 2 (#1331): WordPress, part 5, the docs. It covers what #1569–#1572 built.

Stacked on #1507 (the Webflow docs), since both change send-to-cms.mdx. This PR's own change is its last commit, docs only. Merge it after #1507 and the WordPress chain.

guides/send-to-cms.mdx:

  • Intro. Three ways now: Webflow, WordPress, your workflow.
  • Connect WordPress (new). It covers:
    • making an Application Password (Users → Profile; a separate Author user is enough, as Ansvisor writes drafts only);
    • the Settings → Integrations card, and how the site address is read (https added, /wp-admin and /wp-json taken off, a folder kept, https and the standard port only);
    • what's checked before anything is kept, and when the password goes to the site: once it answers as WordPress, or when it keeps its REST API from visitors;
    • a table of what the toast says when the check fails, and what to do: the user or password refused, Plain permalinks, Application Passwords off, the Authorization header dropped (with the .htaccess line), users hidden, a firewall, a redirect, a user who can't write posts;
    • Change sign-in (a new password, user or site; the old password revoked where the site allows), Disconnect, and Sign-in refused;
    • a self-hosting note on CONNECTOR_CREDENTIALS_KEY.
  • Choose where pages go. Webflow, WordPress, then your workflow. With nothing remembered, or the remembered one no longer connected, the first one ready is picked. A remembered CMS that isn't ready sends to your workflow, never the other CMS (feat(cms): send pages to WordPress from Send to CMS (#1331) #1572).
  • To WordPress (under Send one page). It covers:
    • what goes: title, slug, content, and the meta description as the excerpt;
    • what doesn't: the meta title (set it in the SEO plugin), and JSON-LD (WordPress would keep it as text for users without unfiltered HTML);
    • tables, images, no featured image or category, and how WordPress adjusts the slug;
    • when a send updates the post (a draft or pending review), and when it makes a new draft (the post published, scheduled or private; trashed or deleted);
    • the toast;
    • when the page becomes Published, with the 60-day check, what happens after it, and "Removed in WordPress".
  • Send several pages and See how a send went. WordPress counts toward the 200 a day. A page already on its way can't go twice. The Library's paper plane covers a draft post.

api-reference/webhooks.mdx: pages sent to WordPress don't fire content_draft.sent either. guides/content-editor.mdx: the Send to CMS line names WordPress.

Related issue

Part of #1331 (phase 2, WordPress). Stacked on #1507; documents #1569, #1570, #1571 and #1572.

Type of change

  • feat — New feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

How to test

Read docs/guides/send-to-cms.mdx, or run mint dev in docs/ and open Send to CMS. Each statement can be checked against the code:

  • the address and the check: server/src/lib/cms/wordpress.js (siteAddress, checkSite);
  • what goes and when a new draft is made: wordpress-delivery.js;
  • the published check: wordpress-status.js;
  • the card's messages: settings.wordpress in web/messages/en.json;
  • where pages go: web/src/components/content/cms-target.tsx.

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/)
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR

Docs only: no web or server code changed, so the web checks don't apply. A pre-push review checked each statement against #1569–#1572's code. Its findings are folded in: the check's messages are toasts, the refused sign-in row, when the password is sent, the dialog leaving out a CMS it can't check, Change sign-in, http and ports, where the password is kept, Application Passwords off behind a proxy, a remembered CMS no longer connected, a post published after the 60 days, and no featured image.

🤖 Generated with Claude Code

cihan-gyk and others added 12 commits October 25, 2026 17:45
…hey go (Send to CMS ansvisor#1331, phase 2 part 5)

Send to CMS's guide covers connecting a brand's Webflow site (site token,
scopes, collection and field map, the JSON-LD embed, self-hosting env),
choosing Webflow or the workflow in the Send dialog, what a Webflow send
does (draft item, updated in place, tables as lists, no images yet, the
meta description's fallback), the shared daily cap and the Library mark.
The Content Editor guide and the webhook event table say which sends go
through the webhook.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…slug and the 60-day check (review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ur workflow, and says so (review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ord and send pages to it as draft posts (ansvisor#1331)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… read when the Library opens and daily (ansvisor#1331)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ss-server

# Conflicts:
#	server/src/lib/content-delivery.test.js
#	supabase/schema.sql
The Send dialog (editor, Library row, bulk) offers the brand's WordPress
site beside Webflow and the webhook. A remembered CMS that isn't ready
goes to the webhook, never the other CMS. The toast says when a live post
got a new draft and when JSON-LD was left out. The Library marks rows sent
to WordPress and asks /wordpress-status once per brand per visit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nd to CMS ansvisor#1331)

Connect WordPress (Application Password, the site check and what its
messages mean, change sign-in, disconnect, self-hosting key), where pages
go with three targets, what goes to WordPress and when a send makes a new
draft, the published check, bulk and Library lines, and the webhook and
editor guide lines.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@mintlify

mintlify Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit 8d47ddf.

Approve preview

cihan-gyk and others added 7 commits October 28, 2026 03:07
… has ended

Since ansvisor#1589 a workspace whose plan has ended can't write, but taking back an
outside account's access stays open (COST_STOPPING), as Webflow's disconnect
does. WordPress's disconnect revokes the Application Password where the site
allows, so it joins the list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added the needs-migration Adds or edits a migration — apply it to the hosted database label Oct 28, 2026
@cihan-gyk

Copy link
Copy Markdown
Collaborator Author

Merged #1572's new head in (5d39c76). send-to-cms.mdx, webhooks.mdx and content-editor.mdx conflicted: the WordPress text and main's Products line both stay, and #1507's and #1567's text is intact. Mark published's line now names WordPress too. Checks: typecheck on every web tip, the server suite at #1579 (3,522 tests), and the whole web suite (4,438 tests) and yarn build at #1580.

@cihan-gyk

Copy link
Copy Markdown
Collaborator Author

Merged main forward (8356ba3) via #1572; resolved docs/guides/content-editor.mdx with both sides kept.

@cihan-gyk

Copy link
Copy Markdown
Collaborator Author

Merged main (cfd8a35) through #1572; the docs needed no changes, and the conflicts were #1572's.

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

Reviewed this PR's own change (on top of #1572): docs only (send-to-cms.mdx, content-editor.mdx, webhooks.mdx). On its own it merges with main without conflicts. It carries #1572's three conflicts, though, so it should go after #1572's merge of main. take-1573 (7ed4ff9f) is this branch with take-1572 merged in.

What I checked against the code

  • Connecting:
    • https and the standard port only.
    • /wp-admin and /wp-json are dropped from the address; a folder is kept.
    • The password is sent only once the site answers as WordPress.
    • The password is kept encrypted with CONNECTOR_CREDENTIALS_KEY.
    • Only admins and managers can connect, change the sign-in or disconnect.
    • Revoking the password works on WordPress 5.7 and later.
    • Each toast row matches the error the API returns.
  • Sending:
    • The title, slug, content and excerpt go; the meta title and JSON-LD don't.
    • A draft or pending post is updated.
    • A live, scheduled or private post gets a new draft instead.
    • A trashed or deleted post gets a new one.
    • The 200-a-day cap is shared with Webflow and the workflow.
    • A page already queued for WordPress isn't sent there again.
  • The published check: it runs when the Library opens and once a day, for sends from the last 60 days. A trashed or deleted post shows "Removed in WordPress". A site that stops answering as WordPress closes nothing.
  • Choosing the target: Webflow, WordPress, then your workflow. A CMS that's connected but not ready can't be picked, and the page goes to the workflow, never to the other CMS.
  • The copy is plain English and names no customer.

@gkhngyk
gkhngyk merged commit 01b0d21 into ansvisor:main Oct 28, 2026
5 of 6 checks passed
@github-actions github-actions Bot removed the needs-migration Adds or edits a migration — apply it to the hosted database label Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants