Skip to content

pbc-web/post-type-as-taxonomy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Post type as taxonomy

Project a post type as a taxonomy. Made for WordPress.

Usage

Step 1

Register a post type and link it to a taxonomy using the as_taxonomy attribute

'supports'    => array( 'title', 'editor', 'excerpt', 'revisions' ),
'as_taxonomy' => $taxonomy,

Step 2

Also register the taxonomy

$args = array(
	'hierarchical' => true,
	'label'        => 'Taxonomy name',
);
register_taxonomy( $taxonomy, $post_type, $args );

About

Project a post type as a taxonomy. Made for WordPress.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages