Taxonomies

For taxonomies we recommend looking at Extended Taxonomies by John Blackbourn. The package provides extended functionality to WordPress custom taxonomies, allowing developers to quickly build custom taxonomies without having to write the same code again and again.

Installation

Require the mail package, with Composer, in the root directory of your project.

$ composer require johnbillion/extended-taxos

Then require the plugin in your functions.php file. You may use WordPlate’s base_path helper function.

require base_path('vendor/johnbillion/extended-taxos/extended-taxos.php');

Now you can register new custom post types with the register_extended_taxonomy helper function.

register_extended_taxonomy('location', 'event');

Visit the documentation to read more about the plugin.