In order to start working with taxonomies, you need to register a custom post type first. Below is the reference that you can copy/paste. Make sure to tweak it according to your liking! If you need to create multiple custom post types, I highly suggest to declare a function to organize them.
Things To Know For WordPress Taxonomy
Please keep in mind that you need to change your taxonomy, please replace the “press_categories” and “press_tags” to your preferred name. The second array should also match on your custom post type so ‘press’ word should be changed. Kindly check my video for further instruction.
To add more arrays on your taxonomies, check our WordPress official documentation
WordPress Taxonomy Code For Categories
WordPress Taxonomy Code For Tags