kayaks.co.il – Activities Post Type
Activities for kayaks.co.il
// Register Custom Post Type function kayaks_post_type() { $labels = array( 'name' => _x( 'Activities', 'Post Type General Name', 'kayaks' ), 'singular_name' => _x( 'Activity', 'Post Type Singular Name', 'kayaks' ), 'menu_name' => __( 'Activity', 'kayaks' ), 'name_admin_bar' => __( 'Activities', 'kayaks' ), 'parent_item_colon' => __( 'Parent Activity:', 'kayaks' ), 'all_items' => __( 'All Activities', 'kayaks' ), 'add_new_item' => __( 'Add New Activity', 'kayaks' ), 'add_new' => __( 'New Activity', 'kayaks' ), 'new_item' => __( 'New Activity', 'kayaks' ), 'edit_item' => __( 'Edit Activity', 'kayaks' ), 'update_item' => __( 'Update Activity', 'kayaks' ), 'view_item' => __( 'View Activity', 'kayaks' ), 'search_items' => __( 'Search activities', 'kayaks' ), 'not_found' => __( 'No activities found', 'kayaks' ), 'not_found_in_trash' => __( 'No activities found in Trash', 'kayaks' ), ); $args = array( 'label' => __( 'activity', 'kayaks' ), 'description' => __( 'Activity information pages', 'kayaks' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'custom-fields', ), 'taxonomies' => array( 'activity', 'audience' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-palmtree', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'activity', $args ); } // Hook into the 'init' action add_action( 'init', 'kayaks_post_type', 0 );