I've created a custom taxonomy. It's working just as expected, aside from it is not showing in the get_taxonomies
array. get_terms
function returns an invalid taxonomy
error.
I want to use get_terms
to loop through the Double India Pale Ales and print each name for a select box.
Here is the code used to register it.
add_action( 'init', 'double_ipa_init' );
function double_ipa_init() {
register_taxonomy(
'double-ipa',
array (
0 => 'post',
1 => 'page',
),
array(
'hierarchical' => true,
'label' => 'Double IPAs',
'show_ui' => true,
'query_var' => true,
'rewrite' => array(
'slug' => 'double-ipa'
),
'singular_label' => 'Double IPA'
)
);
}
This code is in a plugin, and is on Multisite.
Thanks in advance for your help.