| 1 | <?php |
|---|
| 2 | /** |
|---|
| 3 | * Plugin Name: Taxonomy Test |
|---|
| 4 | * |
|---|
| 5 | * Description: Trying to figure out if hierarchical permastructs work in WP3. |
|---|
| 6 | * |
|---|
| 7 | * Plugin URI: http://www.miqrogroove.com/pro/software/ |
|---|
| 8 | * Author URI: http://www.miqrogroove.com/ |
|---|
| 9 | * |
|---|
| 10 | * @author: Robert Chapin (miqrogroove) |
|---|
| 11 | * @version: 0.0.00 alpha |
|---|
| 12 | * @copyright Copyright © 2010 by Robert Chapin |
|---|
| 13 | */ |
|---|
| 14 | |
|---|
| 15 | /* Plugin Bootup */ |
|---|
| 16 | |
|---|
| 17 | // $object_type = 'term' used to signify term_relationships.object_id is many-to-one with terms.term_id |
|---|
| 18 | register_taxonomy('testax1', 'term', array( |
|---|
| 19 | 'hierarchical' => TRUE, |
|---|
| 20 | 'label' => 'Groovy Places', |
|---|
| 21 | 'rewrite' => array('slug' => 'my-map'), |
|---|
| 22 | 'query_var' => FALSE |
|---|
| 23 | )); |
|---|
| 24 | |
|---|
| 25 | ?> |
|---|