@cms-lab/wordpress
v1.2.6
Published
WordPress REST document adapter for cms-lab.
Readme
@cms-lab/wordpress
WordPress REST adapter for cms-lab.
cms: {
provider: "wordpress",
url: "http://localhost:8080",
contentTypes: [
{ type: "page", endpoint: "pages" },
{
type: "post",
endpoint: "posts",
uidField: "acf.handle",
urlField: "acf.permalink",
},
],
}The adapter reads WordPress REST API content and normalizes it into cms-lab
CMSDocument objects. It preserves WordPress SEO plugin JSON and media fields
in document.data, stores the REST link as document.url, uses slug as the
UID when available, and treats scheduled, draft, pending, and private content as
draft.
Use uidField or urlField when your project stores route values in custom
fields. Both options read dotted paths from document.data.
See the public adapter maturity matrix for current test coverage and known limits.
Release History
See the repository changelog and GitHub Releases for version-by-version notes.
Open Source
MIT licensed. See the repository license, contributing guide, and support guide.
