Taxonomies for Post Type

Learn about taxonomies for Post Type

Taxonomies helps you to order, group or to give custom meta data. Post Type Class is provided with taxonomies feature, which works like those on WordPress, but it's created by their way like this :

<?php
$this->posts					=		new PostType( array(
	'namespace'					=>		'posts',
  'label'							=>		__( 'Posts' )
) );

$this->post->define_taxonomy( array(
  	'title'					=>	__( 'Category' ),
  	'namespac'			=>	'category',
  	'is-hierarchical'	=> true, // for category hierarchy like or false for tag hierarchy.
) );

$this->post->run();

Like PostType, define_taxonomy array accepts several keys for advanced configuration. Look at the Post Type Taxonomies Parameters List.