=== Morphic – Adaptive Content Engine ===
Contributors: pinxton
Tags: custom fields, custom post types, headless cms, rest api, content types
Requires at least: 6.9
Tested up to: 7.1
Requires PHP: 8.0
Stable tag: 2.7.9
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Custom fields and custom post types in a visual builder, with a REST API for headless sites. A fast ACF alternative.

== Description ==

Morphic is a custom fields and custom post types plugin for WordPress, and a fast alternative to Advanced Custom Fields (ACF), Pods and Meta Box. Design content models in a visual builder, write in a clean editor, show entries on your site with your own theme, and read everything from a REST API for headless sites. Content lives in Morphic's own indexed tables, not post meta, so lists and filters stay fast with hundreds of thousands of entries. The Speed section below has the measurements.

Everything below is included, with no limit set by Morphic on models, entries, fields, pages, languages, API keys or webhooks.

= What people build with Morphic =

**Everyday websites**

* A blog or magazine with authors, categories, reading time and SEO fields, shown by your theme.
* A restaurant menu, a team page, testimonials, FAQs and opening hours, edited by people who never touch code.
* An events calendar with dates, venues, ticket links and "sold out", sorted and filtered instantly.
* A real estate site with listings by price, city and rooms, each with its own page and photo gallery.
* A recipe collection with ingredients, steps, cooking times and servings.
* A job board, a course catalogue, a portfolio, a documentation site with pages in a tree.

**Business and shops**

* A product catalogue or spec database next to WooCommerce, with extra fields on products and fast filters.
* A directory of members, dealers, clinics or partners, searchable and filterable by any field.
* Site-wide settings pages: contact details, footer text, announcement bars, read with one function.
* Multilingual content in as many languages as you need, following Polylang or WPML.

**Headless and apps**

* The content backend for a Next.js, Nuxt, Astro, Svelte or mobile app, with an OpenAPI document and TypeScript types.
* A small API for your app: API keys that read, or read and write, limited to chosen models.
* Signed webhooks that tell your other systems about every change, in order.

**For plugin and theme developers**

* A data layer for your own plugin: define models in PHP with `morphic_define()` and read and write with `morphic_query()`, `morphic_create()` and `morphic_update()`. No custom tables to write or migrate.
* Fields on posts, pages, products, users and terms that filter with real indexes instead of slow meta queries.
* A drop-in move away from post meta: import custom post types and ACF fields in one step, with a speed report on your own content.

**Dynamic data storage**

* Form submissions, leads, bookings or survey answers stored as typed entries with an API.
* Logs, audit trails and change feeds your other systems can follow.
* Product feeds, price lists and stock data synced from outside systems through the REST API.
* Anything that changes shape over time: add fields to a live model and existing entries upgrade as they are read.

= What you get =

* Visual model builder with text, rich text, numbers, dates, options, media, galleries, links, colours, embeds, maps, WordPress links and more.
* Relations, components, dynamic zones, parents and trees.
* Editor with drafts and publishing, bin, translations and keyboard save.
* Filters, sorting, unique values and full-text search, kept current on every save.
* REST API with cursor paging, expand, idempotency keys, an OpenAPI document and TypeScript types.
* API keys that read, or read and write, limited to chosen models.
* Signed webhooks for every change, in order.
* Access per model for every WordPress role, and hashed password fields.
* Website pages for every entry and list, shown with your theme: block themes and classic themes, with your header, footer and layout.
* Works with SEO plugins, sitemaps, menus and site search through optional WordPress mirror posts, with get_post_meta() support.
* Fields on posts, pages, products, users and terms, filtered by Morphic instead of slow meta queries.
* Settings pages for site-wide values.
* Import from WordPress custom post types and ACF, with a speed report on your own content.
* JSON import and export.
* Languages with no limit set by Morphic, following Polylang or WPML when active.
* Shortcodes [morphic_list], [morphic_entry] and [morphic_field], and a block binding source for block themes.
* PHP API for themes and other plugins: morphic_define, morphic_query, morphic_get, morphic_create, morphic_update, morphic_setting and the Morphic\Morphic class.
* Built-in help center, command palette and dark mode.

= Speed =

Measured on 10,000 articles from 50 authors, median of 30 runs on PHP 8.5, caches emptied before every read:

* 20 newest published articles: WordPress posts with meta 61.2 ms, Morphic 0.37 ms.
* Count and total price for 10 authors: WordPress 187 ms, Morphic 19.6 ms, Morphic Pro 0.67 ms.
* 20 articles over HTTP, full response: WordPress REST 16.4 ms, Morphic REST 11.8 ms, Morphic Pro fast endpoint 3.7 ms.

= Morphic and Morphic Pro =

Morphic, this plugin, is complete on its own. Morphic Pro is a separate add-on for teams and growing sites, sold at https://morphicwp.com:

* Free: no limit set by Morphic on models, entries, fields, languages, website pages, API keys or webhooks; the REST API; the editor; website pages in any theme; SEO and sitemap support; fields on WordPress content; import from WordPress and ACF; JSON import and export; the PHP API.
* Pro adds team work: approval workflow with a review queue, comments with mentions and assignments, field-level permissions, history with compare and restore, and an audit log.
* Pro adds translation workflow: missing and outdated translations per language, side-by-side translating and XLIFF files for translators.
* Pro adds speed and scale: a fast endpoint that skips the WordPress bootstrap, live views with counts and sums, a key-value store and batch transactions.
* Pro adds site building and operations: Gutenberg blocks, ACF compatibility, bulk edit, more model templates, model sync between sites, API key permissions and rate limits, a webhook delivery log with replay, scheduled publishing, CSV import and export, and scheduled exports by email.

= Privacy and external services =

Morphic contacts no external service of its own and collects no data. Webhooks send the changed entry data to the addresses you enter in Settings → Webhooks, and only to addresses that are turned on. Links to https://morphicwp.com appear only on Morphic's own admin screens.

= Source code =

The admin app is plain JavaScript modules shipped as written, with no build step. The plugin source is included in full.

== Installation ==

1. In WordPress, go to Plugins → Add New, search for "Morphic" and click Install, then Activate.
2. Open Morphic in the admin menu.
3. Under Models, start from a template (Blog, Product catalog or Events) or create your own model.
4. Add a few entries under Content.
5. To show entries on your site, open the model, go to Advanced → Website pages, switch it on and choose an address such as "journal".
6. To read content from an app, open API & integration and copy a ready-made request. Public models need no key; give Read to Everyone in the model's Access tab.
7. Coming from ACF or custom post types? Open Import from WordPress and import them in one step.

= Morphic Pro =

Morphic Pro is a separate paid add-on for this plugin. This plugin works fully without it.

1. Get a licence at https://morphicwp.com and choose a plan. Your licence key appears in My Account after purchase.
2. Download the Morphic Pro zip from My Account at https://morphicwp.com/my-account/.
3. In WordPress, go to Plugins → Add New → Upload Plugin, choose the zip, then install and activate it. The free Morphic plugin must be installed and active first, version 2.7.6 or newer.
4. Open Morphic → Settings → Licence, paste the key into "Enter a licence key" and click Activate. You can also use "Activate with my account".

Pro features then appear in the Morphic menu.

== Frequently Asked Questions ==

= Is Morphic an ACF alternative? =

Yes. Morphic defines custom fields, content models and relations in its own visual builder, so you can add fields without ACF. To move existing ACF fields, use Import from WordPress; see the next question.

= Can I import custom post types and ACF fields? =

Yes. Import from WordPress turns custom post types and their ACF fields, including repeaters, flexible content, relationships and galleries, into Morphic models. Your posts are not touched.

= Does it use custom post types? =

No. Morphic stores content in its own database tables. Mirror posts for SEO plugins are optional.

= Is there a REST API? =

Yes. The REST API has cursor paging, expand, idempotency keys, an OpenAPI document and TypeScript types. You can generate the TypeScript types from the OpenAPI document with openapi-typescript.

= Can I use Morphic as a headless CMS? =

Yes. Public models are read over the REST API with no login: give Read to Everyone in the model's Access tab. Ready-made request snippets are on the API & integration page.

= How do I authenticate API requests? =

Public models need no authentication. For private models, create an API key in Settings → API keys and send it in the X-Morphic-Key header, or use WordPress application passwords.

= Does it work with the block editor? =

Morphic has its own entry editor, not the block editor. Block themes can bind a block to a Morphic field through the morphic/field block binding source.

= Does it work with my theme? =

Yes. Entry pages and lists use your theme's own templates, header and footer, in block themes and classic themes. Block themes can design them in Appearance → Editor → Templates.

= Does it work with SEO plugins and sitemaps? =

Yes. Switch on "Show in WordPress" in the WordPress card on a model's Advanced tab. Each published entry gets a lightweight mirror post that SEO plugins, sitemaps, menus and site search include.

= Is it multilingual? =

Yes. Add as many languages as you need in Settings → Languages and mark fields as translatable. Morphic follows Polylang or WPML on your site.

== Screenshots ==

1. Morphic home dashboard with every content model, its entry count and quick links.
2. Product content list with sortable columns for each custom field.
3. Entry editor for a product with its custom fields and rich text description.
4. Model fields tab showing each custom field's type and API name.
5. Access tab for choosing which WordPress roles can read, create, edit and delete entries.
6. REST API and integration page with ready-to-copy headless request snippets.

== Changelog ==

= 2.7.9 =
Smoother, more reliable everyday editing.
Small fixes and polish throughout.

= 2.7.8 =
A round of polish across the editor, phones included.

= 2.7.7 =
Dropdowns look and behave the same everywhere now.
Moving around the admin feels tidier.

= 2.7.6 =
A cleaner start, with the banner and screenshots in place.

= 2.7.5 =
Updates now set themselves up without any extra steps.

= 2.7.4 =
Quieter, clearer handling when something unexpected comes in.

Creating models and saving entries feels smoother again.

= 2.7.0 =
Now available in all 24 official EU languages.

= 2.6.7 =
Some quiet housekeeping to keep your site in good shape.

= 2.6.6 =
A tidy-up of lists and lookups for everyday use.

= 2.6.5 =
The admin looks right again on phones, and settings tabs feel tidier.

= 2.6.4 =
Brings the plugin in line with the latest WordPress.

= 2.6.3 =
Runs more steadily across a wider range of hosts.

= 2.6.2 =
A little quicker on many setups.

= 2.6.1 =
Back on track for a wider range of setups, with a few neat touches.

= 2.6.0 =
A sizeable release full of useful additions for everyday work.

= 2.5.2 =
Rebuilds are quicker and more pleasant to watch.

= 2.5.1 =
Pages with lots of choices now load more quickly.

= 2.5.0 =
Filters and checkboxes behave more sensibly now.

= 2.4.1 =
A friendlier help area to get you started.

= 2.4.0 =
A big release that brings a lot under one roof.

== Upgrade Notice ==

= 2.7.9 =
A recommended update with small improvements.

= 2.7.0 =
Now available in all 24 official EU languages.

= 2.6.7 =
A recommended update for everyone.

= 2.6.6 =
A recommended update with a tidy-up of lists and lookups.

= 2.6.5 =
Makes the admin comfortable on phones again.

= 2.6.4 =
Requires WordPress 6.9 or newer.

= 2.6.3 =
Runs more steadily across a wider range of hosts.

= 2.6.2 =
A little quicker on many setups.

= 2.6.1 =
Back on track for a wider range of setups.

= 2.6.0 =
A big release full of useful additions for everyday work.

= 2.5.2 =
Rebuilds are quicker and more pleasant to watch.

= 2.5.1 =
Pages with lots of choices now load more quickly.

= 2.5.0 =
Filters and checkboxes behave more sensibly now.

= 2.4.1 =
A friendlier help area to get you started.

= 2.4.0 =
A big step with plenty of room to grow.
