IMPORTANT: Atlas Content Modeler is entering an end-of-life phase. During this phase, we will continue to support Atlas Content Modeler to ensure it is secure and functional, giving you time to move your site to our recommended replacement. While security and critical bug fixes will continue to be provided through 2024, no new feature development will happen in Atlas Content Modeler. The plugin will be shutdown in early 2025.
We recommend Advanced Custom Fields (ACF) as a replacement for Atlas Content Modeler. ACF is a mature and stable product, with a large community, and it has most of the features that Atlas Content Modeler has, and more!
Read more about ACM's deprecation and how to migrate your site to ACF here.
Atlas Content Modeler is a WordPress plugin to create custom post types and fields for headless WordPress sites.
Download the latest plugin zip file.
Developers get a modern content modeling system with WPGraphQL and REST support.
Publishers get friendly and familiar content entry pages.
- WordPress 5.7 or higher.
- PHP 7.2 or higher.
- We recommend that you set Permalinks to a value other than “Plain” in your WordPress dashboard at Settings → Permalinks.
- Download the latest copy of the Atlas Content Modeler plugin here.
- Install and activate the plugin in your WordPress admin area at Plugins → Add New by clicking “Upload Plugin”.
- We recommend that developers also install and activate the WPGraphQL plugin to be able to fetch model entries with GraphQL.
Once installed, Atlas Content Modeler and WPGraphQL check for updates and display prompts to install new versions.
Atlas Content Modeler has a three-step workflow:
- Developers create a content model and its fields.
- Publishers add entries for that model.
- Developers fetch entry data with WPGraphQL or REST to display in their website or application.
- Click “Content Modeler” in your WordPress admin sidebar.
- Click “Get Started” to add your first model.
- Type “Cat” as the singular name, “Cats” as the plural name and set “API Visibility” to “Public”. Optionally type a description.
- Click “Create”.
You will see “The Cats model was created”. Now you're ready to add your first field.
- Click the “Text” button to add a text field.
- Type “Name” into the name field so that publishers will be able to give their cats a name.
- Tick “Use this field as the entry title”.
- Click “Create”.
Let's add one more field so that publishers can add an image of their cats.
- Click the purple “+” button below the Name field you just added.
- Click the “Media” button.
- Type “Photo” into the name field.
- Click “Create”.
Nice work! You defined your first model and added two fields. It's time to add your first cat entry.
- Click the “Cats” menu item in the WordPress admin sidebar.
- Click “Add New”.
- Give your cat a name and add a photo.
- Click “Publish”.
You defined a cat model and added your first cat entry. That's everything you need to be able to fetch cats using a GraphQL or REST request.
Atlas Content Modeler is designed for headless WordPress, where a developer creates an app or website to display custom content. Developers can fetch content with GraphQL or REST:
Install and activate the WPGraphQL plugin to follow along with this example.
- Click “Content Modeler” in your WordPress admin sidebar.
- Click the options button (three dots) on the right of the “Cats” row in the list of models.
- Click “Open in GraphiQL”. GraphiQL will load with a pre-filled query for your cats data.
- Click the Play button at the top of GraphiQL. The response will include the name and image information for the cat you added.
Visit https://example.com/wp-json/wp/v2/cats
in your browser, replacing https://example.com
with your WordPress URL.
You will see model data for your cats. Atlas Content Model fields appear in the acm_fields
property:
[
{
"acm_fields": {
"name": "Garfield",
"photo": {}
}
}
]
Models with a “Private” API Visibility need authenticated GraphQL and REST requests. Learn about authentication options from the WPGraphQL documentation.
Change the API Visibility of a model at any time by choosing “Edit” from the model options.
Requests sent in a GraphiQL session in the WordPress admin area are authenticated by default. This makes GraphiQL a good place to experiment with queries for private model data.
- Learn more by reading the documentation.
- Click ”Send Feedback” at the top of the Content Modeler page in your WordPress admin area to share your thoughts with us.
- File bugs or feature requests in GitHub.
- Create a headless WordPress site using Faust.js by WP Engine.
- Discover the Atlas headless WordPress hosting platform by WP Engine.
- Watch a video introducing the WordPress REST API.
- Watch a video introducing WPGraphQL.