/**
* Custom taxonomy for recipe ingredients
* Following guidelines in Dig into Wordpress 3.3 p.35
* Also references code from: http://codex.wordpress.org/Taxonomies
*
*/
function ingredients_init() {
// create a new taxonomy
register_taxonomy(
'ingredients',
'post',
array(
'hierarchical' => false,
'label' => __( 'Ingredients'),
'query_var' => true,
'rewrite' => array( 'slug' => 'ingredient'),
)
);
}
add_action( 'init', 'ingredients_init' );Normally when I use this code, when I open up the "Posts" menu item in the WP admin side bar I will get an additional menu item for each taxonomy I create under "Tags", so when using the above example I should get a menu item for "Ingredients" where are can add new terms, assign them to posts etc. Also any posts tagged with a term from one of these taxonomies (e.g. "eggs") should be listed when I use a url of the form: http://myblog/ingredient/eggs but I'm getting a 404 error instead.
Are custom taxonomies not supported in Pagelines or do I need to set these up in a different way? If custom taxonomies are not supported, I'm not sure that Pagelines is going to work for me :-(











