__('Main menu'), )); } add_action('init', 'create_menus'); /* ********* Post types (register_post_type) ********* */ function create_post_types() { register_post_type('anime', array( 'labels' => array( 'name' => __('Anime entry'), 'singular_name' => __('Anime entries') ), 'supports' => array('title', 'editor', 'thumbnail', 'revisions'), 'public' => true, 'has_archive' => true, 'rewrite' => array('with_front' => false) )); } add_action('init', 'create_post_types'); /* ********* Taxonomies (register_taxonomy) ********* */ function create_taxonomies() { register_taxonomy('anime_genre', 'anime', array( 'labels' => array( 'name' => __('Genres'), 'singular_name' => __('Genre') ), 'public' => true, 'hierarchical' => true, 'rewrite' => array('slug' => 'genre') )); register_taxonomy('anime_type', 'anime', array( 'labels' => array( 'name' => __('Types'), 'singular_name' => __('Type') ), 'public' => true, 'hierarchical' => true, 'rewrite' => array('slug' => 'type') )); } add_action('init', 'create_taxonomies'); /* ********* Sidebars (register_sidebar) ********* */ function create_sidebars() { register_sidebar(array( 'name' => 'Sidebar 1', 'id' => 'sidebar1', 'before_widget' => '', 'after_widget' => '', 'before_title' => '