Skip to content

Commit a920a88

Browse files
authored
Update README.md
1 parent db3cc2d commit a920a88

File tree

1 file changed

+7
-51
lines changed

1 file changed

+7
-51
lines changed

README.md

+7-51
Original file line numberDiff line numberDiff line change
@@ -10,63 +10,19 @@ WordPress.com’s experimental Create Content Model plugin transforms the way cu
1010

1111
[[video]]
1212

13-
## About
14-
15-
Our team at WordPress.com is excited to share our recent prototyping efforts on game changing approaches to custom content creation.
16-
17-
This Create Content Model plugin builds upon our custom post types project at the [CloudFest Hackathon in 2024](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-variations/). We’ve leveraged core functionality, like [block bindings](https://make.wordpress.org/core/2024/03/06/new-feature-the-block-bindings-api/) and [block variations](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-variations/), to create a new paradigm for creating and managing custom post types and custom fields in WordPress.
18-
19-
Unlike existing custom post type and custom field plugins, our plugin takes a native approach by putting the creation and management of these elements directly in the WordPress Block Editor.
20-
21-
Using the Block Bindings API, custom fields (`post_meta`) are bound to a block’s attributes. Block Variations are created from each bound block for use in front-end template layouts. The result is an extremely intuitive workflow for both the setup of custom post types and fields and their usage in front-end templating.
22-
23-
```
24-
<!-- wp:paragraph {
25-
"metadata":{
26-
"bindings":{
27-
"content":{
28-
"source":"core/post-meta",
29-
"args":{
30-
"key":"movie-rating"
31-
}
32-
}
33-
}
34-
}
35-
} -->
36-
<p></p>
37-
<!-- /wp:paragraph -->
38-
```
39-
40-
A key feature of the Create Content Model plugin is the [export](https://github.com/Automattic/create-content-model/blob/78d4a208e0c2c74cebd2a7b434e086731c762b41/includes/exporter/class-content-model-exporter.php) of a locked custom data model and a data entry UI. Developers can generate and reuse the same content model on multiple sites without ongoing plugin maintenance or costs. They can hand off fully functional sites with locked custom post types and fields, ready for clients to populate the content.
41-
42-
43-
```
44-
private function generate_json_for_model( $model ) {
45-
return array(
46-
'type' => 'postType',
47-
'postType' => $model->slug,
48-
'slug' => $model->slug,
49-
'label' => $model->title,
50-
'template' => $model->template,
51-
'fields' => $this->format_fields_for_export( $model->get_meta_fields() ),
52-
);
53-
}
54-
```
55-
56-
This Create Content Model plugin provides a preview of functionality that can be further developed into a practical solution for users and developers navigating the evolving landscape of WordPress content management.
13+
## Getting Started
5714

58-
<!--
15+
Find detailed instructions on creating your content model using this plugin in the [Get Started](/GETSTARTED.md) guide.
5916

60-
## Try it out & give us feedback
61-
See it in action in the WordPress Playground[link to playground site]. And then share your feedback in a [GitHub issue](https://github.com/Automattic/create-content-model/issues).
17+
## About
6218

63-
Or download the plugin [here](download link)
64-
-->
19+
Our team at WordPress.com is excited to share our recent prototyping efforts on game changing approaches to custom content creation.
6520

21+
The Create Content Model plugin builds upon our custom post types project at the [CloudFest Hackathon in 2024](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-variations/). We’ve leveraged core functionality, like [block bindings](https://make.wordpress.org/core/2024/03/06/new-feature-the-block-bindings-api/) and [block variations](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-variations/), to create a new paradigm for creating and managing custom post types and custom fields in WordPress.
6622

67-
## Getting Started
23+
Unlike existing custom post type and custom field plugins, our plugin takes a native approach by putting the creation and management of these elements directly in the WordPress Block Editor. Using the Block Bindings API, `post_meta` fields are bound to block attributes. Block variations are created from each bound block for use in front-end template layouts. The result is an extremely intuitive workflow for both the setup of custom post types and fields and their usage in front-end templating.
6824

69-
Find detailed instructions on creating your content model using this plugin in the [Get Started](/GETSTARTED.md) guide.
25+
A key feature of the Create Content Model plugin is the export of a locked custom data model and a data entry UI. Developers can generate and reuse the same content models on multiple sites without ongoing plugin maintenance or costs. They can hand off fully functional sites with locked custom post types and fields, ready for clients to populate the content.
7026

7127
## Development
7228

0 commit comments

Comments
 (0)