Revision: 35788
Updated Code
at February 12, 2011 00:49 by jli
Updated Code
function create_theme_taxonomy() { register_taxonomy('ville-activite', array('activite'), array( 'hierarchical' => TRUE, 'label' => 'Villes - Activités', 'singular_label' => 'Ville - Activités', 'public' => TRUE, 'show_ui' => TRUE, 'show_tagcloud' => FALSE, 'rewrite' => FALSE )); register_taxonomy('ville-restaurant', array('restaurant'), array( 'hierarchical' => TRUE, 'label' => 'Villes - Restaurants', 'singular_label' => 'Ville - Restaurants', 'public' => TRUE, 'show_ui' => TRUE, 'show_tagcloud' => FALSE, 'rewrite' => FALSE )); register_taxonomy('ville', array('activite','restaurant'), array( 'hierarchical' => TRUE, 'label' => 'Villes', 'singular_label' => 'Ville', 'public' => TRUE, 'show_ui' => TRUE, 'show_tagcloud' => FALSE, 'rewrite' => FALSE )); } add_action( 'init', 'create_theme_taxonomy', 0 );
Revision: 35787
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 13, 2010 05:41 by jli
Initial Code
function create_theme_taxonomy() { register_taxonomy('ville-activite', array('activite'), array( 'hierarchical' => TRUE, 'label' => 'Villes - Activités', 'singular_label' => 'Ville - Activités', 'public' => TRUE, 'show_ui' => TRUE, 'show_tagcloud' => FALSE, 'rewrite' => FALSE )); register_taxonomy('ville-restaurant', array('restaurant'), array( 'hierarchical' => TRUE, 'label' => 'Villes - Restaurants', 'singular_label' => 'Ville - Restaurants', 'public' => TRUE, 'show_ui' => TRUE, 'show_tagcloud' => FALSE, 'rewrite' => FALSE )); register_taxonomy('ville', array('activite','restaurant'), array( 'hierarchical' => TRUE, 'label' => 'Villes', 'singular_label' => 'Ville', 'public' => TRUE, 'show_ui' => TRUE, 'show_tagcloud' => FALSE, 'rewrite' => FALSE )); } add_action( 'init', 'create_theme_taxonomy', 0 );
Initial URL
Initial Description
Initial Title
Wordpress - Create custom taxonomies
Initial Tags
wordpress
Initial Language
PHP