public function register_taxonomy() { if (taxonomy_exists('region')) { register_taxonomy_for_object_type('region', $this->post_type); } else { $region_args = array('labels' => Helper::post_type_labels('Region', 'Regions'), 'hierarchical' => true, 'show_ui' => true, 'show_admin_column' => true, 'update_count_callback' => '_update_post_term_count', 'public' => true, 'show_tagcloud' => false, 'rewrite' => false); register_taxonomy('region', $this->post_type, $region_args); } if (taxonomy_exists('service')) { register_taxonomy_for_object_type('service', $this->post_type); } else { $region_args = array('labels' => Helper::post_type_labels('Service'), 'hierarchical' => true, 'show_ui' => true, 'show_admin_column' => true, 'update_count_callback' => '_update_post_term_count', 'public' => true, 'show_tagcloud' => false, 'rewrite' => false); register_taxonomy('service', $this->post_type, $region_args); } }
public function register_post_type() { $args = array('labels' => Helper::post_type_labels('Job'), 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'query_var' => true, 'rewrite' => array('slug' => $this->post_type), 'has_archive' => true, 'hierarchical' => false, 'menu_position' => 30, 'supports' => array('title', 'editor', 'thumbnail', 'excerpt', 'revisions', 'custom-fields')); register_post_type($this->post_type, $args); }
public function register_taxonomy() { $args = array('labels' => Helper::post_type_labels('Category', 'Categories'), 'hierarchical' => true, 'show_ui' => true, 'show_admin_column' => true, 'update_count_callback' => '_update_post_term_count', 'public' => true, 'show_tagcloud' => false, 'rewrite' => false); register_taxonomy('product-category', $this->post_type, $args); }
public function register_post_type() { $args = array('labels' => Helper::post_type_labels('Activity', 'Activities'), 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'query_var' => true, 'rewrite' => array('slug' => 'activity'), 'has_archive' => true, 'hierarchical' => false, 'menu_position' => 35, 'supports' => array('editor', 'custom-fields')); register_post_type($this->post_type, $args); }