PostTypes v2.2.1

testsarrow-up-right codecovarrow-up-right Latest Stable Versionarrow-up-right Total Downloadsarrow-up-right Licensearrow-up-right

Simple WordPress custom post types.

Requirements

Installation

Install with composer

Run the following in your terminal to install PostTypes with Composerarrow-up-right.

$ composer require jjgrainger/posttypes

PostTypes uses PSR-4arrow-up-right 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.

require __DIR__ . '/vendor/autoload.php';

use PostTypes\PostType;

$books = new PostType( 'book' );

$books->register();

See Composer's basic usagearrow-up-right 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 herearrow-up-right.

Notes

Author

Joe Grainger

Last updated