custom taxonomy and permalinks
-
Hey guys,
Hope you can help me with this.
I’ve created custom taxonomy, it works great! But I’m having permalinks issues. I’ve researched it but seems to have problems fixing it. Below is my tax registration code.<?php add_action( 'init', 'build_taxonomies', 0 ); function build_taxonomies() { //register_taxonomy( 'event_type', 'post', array( 'hierarchical' => true, 'label' => 'Event Type', 'query_var' => true, 'rewrite' => true ) ); register_taxonomy( 'event_type', array('post'), array( 'hierarchical' => true, 'label' => 'Event Type', 'query_var' => true, 'rewrite' => array('slug' => 'event_type/category'), 'with_front' => true ) ); } ?>
The commented out part was my original part, but with that links to custom tax didn’t work. So, I got it working by including rewrite array. The problem is, I want my custom taxonomy to be website.com/taxonomy
I know it’s possible to rewrite permalinks, but I can’t find a good source to show how to do it.
Any feedback or thoughts would be appreciated =)
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘custom taxonomy and permalinks’ is closed to new replies.