The following features in Strive now work with Pages and Custom Post Types (CPT) in addition to Posts:
- Editorial Statuses
These features work with Posts and Pages out-of-box but may require a small modification to work with your CPT. In order for these features to be enabled for your CPT, you need to enable custom field support.
Here’s how to do that with the Custom Post Type UI plugin as well as in PHP.
Calendar and Checklist support is coming for Pages and CPTs soon!
Using the Custom Post Type UI plugin
If you’re using Custom Post Type UI to register your CPT, all you have to do is check this box in the Edit screen:
Save your settings and then Strive will be able to work.
If this doesn’t work immediately, deactivate and then reactivate the Custom Post Type UI plugin and it will work as intended.
If you’re registering the CPT with PHP, you can include the “supports” argument in register_post_type() to declare support for custom fields.
Here’s an abbreviated example:
register_post_type('my_cpt', array( 'supports' => array('custom-fields') ));
Once that’s done, Strive’s features will work with your CPT.
Why is this necessary?
Strive needs to save additional metadata for the posts. For instance, if the Editorial Status is complete, Strive needs to add this field with the “complete” status. Without custom field support, there is no way for Strive to save this type of data for your posts.