Can taxonomies be registered in a child theme’s functions.php?
-
I am trying out example code from various tutorials for adding taxonomies to WordPress 3.0 (including some from the codex).
For example:
// Custom Taxonomy Code add_action( 'init', 'build_taxonomies', 0 ); function build_taxonomies() { register_taxonomy( 'operating_system', 'post', array( 'hierarchical' => true, 'label' => 'Operating System', 'query_var' => true, 'rewrite' => true ) ); register_taxonomy( 'ram', 'post', array( 'hierarchical' => true, 'label' => 'RAM', 'query_var' => true, 'rewrite' => true ) ); register_taxonomy( 'hard_drive', 'post', array( 'hierarchical' => true, 'label' => 'Hard Drive', 'query_var' => true, 'rewrite' => true ) ); }
This code does not work in the child but it does if in the parent theme’s functions.php.
Is this meant to be the case or have I made a mistake somewhere along the line?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Can taxonomies be registered in a child theme’s functions.php?’ is closed to new replies.