You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+7-51
Original file line number
Diff line number
Diff line change
@@ -10,63 +10,19 @@ WordPress.com’s experimental Create Content Model plugin transforms the way cu
10
10
11
11
[[video]]
12
12
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 ) {
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
57
14
58
-
<!--
15
+
Find detailed instructions on creating your content model using this plugin in the [Get Started](/GETSTARTED.md) guide.
59
16
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
62
18
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.
65
20
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.
66
22
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.
68
24
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.
0 commit comments