PostTypes v2.2
Simple WordPress custom post types.
Requirements
PHP >=7.2
WordPress >=5.1
Installation
Install with composer
Run the following in your terminal to install PostTypes with Composer.
PostTypes uses PSR-4 autoloading and can be used with the Composer's autoloader. Below is a basic example of getting started, though your setup may be different depending on how you are using Composer.
See Composer's basic usage guide for details on working with Composer and autoloading.
Basic Usage
Below is a basic example of setting up a simple book post type with a genre taxonomy. For more information, check out the online documentation here.
Notes
The full documentation can be found online at posttypes.jjgrainger.co.uk
The class has no methods for making custom fields for post types, use Advanced Custom Fields
The book's example used in the README.md can be found in examples/books.php
Licensed under the MIT License
Maintained under the Semantic Versioning Guide
Author
Joe Grainger
Last updated