'Video Content', 'pages' => array('page'), 'context' => 'normal', 'priority' => 'high', 'only_on' => array( 'template' => array( 'video-page-template.php' ), ), 'fields' => array( array( 'name' => 'video column 1', 'id' => $prefix . 'videocol1', 'type' => 'wysiwyg', 'desc' => 'Enter the video content (embed code from youtube)' ), array( 'name' => 'video column 1 description', 'id' => $prefix . 'videocoldesc1', 'type' => 'wysiwyg', 'desc' => 'Enter the video content (embed code from youtube)' ), array( 'name' => 'video column 2', 'id' => $prefix . 'videocol1', 'type' => 'wysiwyg', 'desc' => 'Enter the video content (embed code from youtube)' ), array( 'name' => 'video column 2 description', 'id' => $prefix . 'videocoldesc1', 'type' => 'wysiwyg', 'desc' => 'Enter the video content (embed code from youtube)' ), array( 'name' => 'video column 3', 'id' => $prefix . 'videocol1', 'type' => 'wysiwyg', 'desc' => 'Enter the video content (embed code from youtube)' ), array( 'name' => 'video column 3 description', 'id' => $prefix . 'videocoldesc1', 'type' => 'wysiwyg', 'desc' => 'Enter the video content (embed code from youtube)' ), array( 'name' => 'video column 4', 'id' => $prefix . 'videocol1', 'type' => 'wysiwyg', 'desc' => 'Enter the video content (embed code from youtube)' ), array( 'name' => 'video column 4 description', 'id' => $prefix . 'videocoldesc1', 'type' => 'wysiwyg', 'desc' => 'Enter the video content (embed code from youtube)' ), ) ); //meta stuffs $meta_boxes[] = array( 'title' => 'Link URL', 'pages' => array('boxouts','page-furniture'), 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'name' => 'video column 1', 'id' => $prefix . 'videocol1', 'type' => 'wysiwyg', 'desc' => 'Enter the video content (embed code from youtube)' ), array( 'name' => 'video column 1 description', 'id' => $prefix . 'videocoldesc1', 'type' => 'wysiwyg', 'desc' => 'Enter the video content (embed code from youtube)' ), array( 'name' => 'video column 2', 'id' => $prefix . 'videocol1', 'type' => 'wysiwyg', 'desc' => 'Enter the video content (embed code from youtube)' ), array( 'name' => 'video column 2 description', 'id' => $prefix . 'videocoldesc1', 'type' => 'wysiwyg', 'desc' => 'Enter the video content (embed code from youtube)' ), array( 'name' => 'video column 3', 'id' => $prefix . 'videocol1', 'type' => 'wysiwyg', 'desc' => 'Enter the video content (embed code from youtube)' ), array( 'name' => 'video column 3 description', 'id' => $prefix . 'videocoldesc1', 'type' => 'wysiwyg', 'desc' => 'Enter the video content (embed code from youtube)' ), array( 'name' => 'video column 4', 'id' => $prefix . 'videocol1', 'type' => 'wysiwyg', 'desc' => 'Enter the video content (embed code from youtube)' ), array( 'name' => 'video column 4 description', 'id' => $prefix . 'videocoldesc1', 'type' => 'wysiwyg', 'desc' => 'Enter the video content (embed code from youtube)' ), ) ); //meta stuffs $meta_boxes[] = array( 'title' => 'Playlists', 'pages' => array('videochannels'), 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'name' => 'playlist code', 'id' => $prefix . 'playlist', 'type' => 'text', 'desc' => 'Enter the playlist code' ), ) ); //meta stuffs $meta_boxes[] = array( 'title' => 'Extra Content', 'pages' => array('page','apprentices','employers','aboutus','videochannels','learning-resources'), 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'name' => 'anchor1header', 'id' => $prefix . 'anchor1header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor1', 'id' => $prefix . 'anchor1', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor2header', 'id' => $prefix . 'anchor2header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor2', 'id' => $prefix . 'anchor2', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor3header', 'id' => $prefix . 'anchor3header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor3', 'id' => $prefix . 'anchor3', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor4header', 'id' => $prefix . 'anchor4header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor4', 'id' => $prefix . 'anchor4', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor5header', 'id' => $prefix . 'anchor5header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor5', 'id' => $prefix . 'anchor5', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor6header', 'id' => $prefix . 'anchor6header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor6', 'id' => $prefix . 'anchor6', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor7header', 'id' => $prefix . 'anchor7header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor7', 'id' => $prefix . 'anchor7', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor8header', 'id' => $prefix . 'anchor8header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor8', 'id' => $prefix . 'anchor8', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor9header', 'id' => $prefix . 'anchor9header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor9', 'id' => $prefix . 'anchor9', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor10header', 'id' => $prefix . 'anchor10header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor10', 'id' => $prefix . 'anchor10', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor11header', 'id' => $prefix . 'anchor11header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor11', 'id' => $prefix . 'anchor11', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor12header', 'id' => $prefix . 'anchor12header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor12', 'id' => $prefix . 'anchor12', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor13header', 'id' => $prefix . 'anchor13header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor13', 'id' => $prefix . 'anchor13', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor14header', 'id' => $prefix . 'anchor14header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor14', 'id' => $prefix . 'anchor14', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor15header', 'id' => $prefix . 'anchor15header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor15', 'id' => $prefix . 'anchor15', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor16header', 'id' => $prefix . 'anchor16header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor16', 'id' => $prefix . 'anchor16', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor17header', 'id' => $prefix . 'anchor17header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor17', 'id' => $prefix . 'anchor17', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor18header', 'id' => $prefix . 'anchor18header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor18', 'id' => $prefix . 'anchor18', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor19header', 'id' => $prefix . 'anchor19header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor19', 'id' => $prefix . 'anchor19', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor20header', 'id' => $prefix . 'anchor20header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor20', 'id' => $prefix . 'anchor20', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), ) ); // meta stuffs $meta_boxes[] = array( 'title' => 'Job Detail', 'pages' => array('jobs'), 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'name' => 'Job ID', 'id' => $prefix . 'jobid', 'type' => 'text', 'desc' => 'Job ID' ), array( 'name' => 'Job Name', 'id' => $prefix . 'jobname', 'type' => 'text', 'desc' => 'Job Name' ), array( 'name' => 'Company Name', 'id' => $prefix . 'companyname', 'type' => 'text', 'desc' => 'Company Name' ), array( 'name' => 'Location', 'id' => $prefix . 'location', 'type' => 'text', 'desc' => 'Location' ), array( 'name' => 'City', 'id' => $prefix . 'city', 'type' => 'text', 'desc' => 'City' ) ,array( 'name' => 'State', 'id' => $prefix . 'state', 'type' => 'text', 'desc' => 'State' ) ,array( 'name' => 'Short Description', 'id' => $prefix . 'shortdescription', 'type' => 'wysiwyg', 'desc' => 'Short Description' ) ,array( 'name' => 'Long Description', 'id' => $prefix . 'longtdescription', 'type' => 'wysiwyg', 'desc' => 'Long Description' ) ,array( 'name' => 'Requirements', 'id' => $prefix . 'requirements', 'type' => 'wysiwyg', 'desc' => 'Requirements' ) ,array( 'name' => 'Salary', 'id' => $prefix . 'salary', 'type' => 'text', 'desc' => 'Salary' ) ) ); // meta stuffs $meta_boxes[] = array( 'title' => 'Questions and Answers', 'pages' => array('faqs'), 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'name' => 'Question', 'id' => $prefix . 'question', 'type' => 'wysiwyg', 'desc' => 'Question' ), array( 'name' => 'Answer', 'id' => $prefix . 'answer', 'type' => 'wysiwyg', 'desc' => 'Answer' ) ) ); // meta stuffs $meta_boxes[] = array( 'title' => 'Address Info', 'pages' => array('locations'), 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'name' => 'Address', 'id' => $prefix . 'address', 'type' => 'wysiwyg', 'desc' => 'Address' ), array( 'name' => 'Telephone', 'id' => $prefix . 'telephone', 'type' => 'text', 'desc' => 'Telephone' ), array( 'name' => 'Fax', 'id' => $prefix . 'fax', 'type' => 'text', 'desc' => 'Fax' ) ,array( 'name' => 'Email', 'id' => $prefix . 'email', 'type' => 'email', 'desc' => 'Email' ) ) ); // meta stuffs $meta_boxes[] = array( 'title' => 'Video Info', 'pages' => array('videos'), 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'name' => 'Video ID', 'id' => $prefix . 'videoid', 'type' => 'text', 'desc' => 'You Tube Video ID ie. G7z74BvLWUg' ), array( 'name' => 'Thumbnail Image', 'id' => $prefix . 'thumbnailimage', 'type' => 'image', 'desc' => 'Video Screenshot image - should be 220 x 120 pixels' ), array( 'name' => 'Video Description', 'id' => $prefix . 'videodescription', 'type' => 'wysiwyg', 'desc' => 'Video Description Text' ), ) ); function rw_register_meta_boxes() { global $meta_boxes; // Make sure there's no errors when the plugin is deactivated or during upgrade if ( !class_exists( 'RW_Meta_Box' ) ) return; foreach ( $meta_boxes as $meta_box ) { if(isset($meta_box['only_on']) && !rw_maybe_include($meta_box['only_on'])) continue; new RW_Meta_Box( $meta_box ); } } add_action( 'admin_init', 'rw_register_meta_boxes' ); /** * Check if meta boxes is included * * @return bool */ function rw_maybe_include($conditions) { // Include in back-end only if ( !defined( 'WP_ADMIN' ) || !WP_ADMIN ) return false; // Always include for ajax if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) return true; if ( isset( $_GET['post'] ) ) $post_id = $_GET['post']; elseif ( isset( $_POST['post_ID'] ) ) $post_id = $_POST['post_ID']; else $post_id = false; $post_id = (int) $post_id; foreach($conditions as $cond => $v){ //catch non-arrays too if(!is_array($v)) $v = array($v); switch($cond){ case 'id': if ( in_array( $post_id, $v )) return true; break; case 'slug': $post = get_post($post_id); $post_slug = $post->post_name; if ( in_array( $post_slug, $v )) return true; break; case 'template': $template = get_post_meta( $post_id, '_wp_page_template', true ); if ( in_array( $template, $v ) ) return true; break; } } // If no condition matched return false; } _x('Quotations', 'post type general name'), 'singular_name' => _x('Quotation', 'post type singular name'), 'add_new' => _x('Add New', 'Quotation'), 'add_new_item' => __('Add New Quotation'), 'edit_item' => __('Edit Quotation'), 'new_item' => __('New Quotation'), 'view_item' => __('View Quotations'), 'search_items' => __('Search Quotations'), 'not_found' => __('No Quotations Found'), 'not_found_in_trash' => __('No Quotations found in Trash'), 'parent_item_colon' => '', 'menu_name' => 'Quotations', ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'query_var' => true, 'rewrite' => Array('slug'=>'quotations'), 'capability_type' => 'post', 'has_archive' => false, 'hierarchical' => true, 'menu_position' => 39, 'supports' => array('title','editor', 'excerpt','thumbnail', 'page-attributes', 'custom-fields','post-formats') ); register_post_type('quotations',$args); // Subjects $labels = array( 'name' => _x('Learning Resources', 'post type general name'), 'singular_name' => _x('Learning Resources', 'post type singular name'), 'add_new' => _x('Add New', 'Learning Resource'), 'add_new_item' => __('Add New Learning Resource'), 'edit_item' => __('Edit Learning Resource'), 'new_item' => __('New Learning Resource'), 'view_item' => __('View Learning Resources'), 'search_items' => __('Search Learning Resources'), 'not_found' => __('No Learning Resources Found'), 'not_found_in_trash' => __('No Learning Resources found in Trash'), 'parent_item_colon' => '', 'menu_name' => 'Learning Resources', ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'query_var' => true, 'rewrite' => Array('slug'=>'learning-resources'), 'capability_type' => 'post', 'has_archive' => false, 'hierarchical' => true, 'menu_position' => 40, 'supports' => array('title','editor', 'excerpt','thumbnail', 'page-attributes', 'custom-fields','post-formats') ); register_post_type('learningresources',$args); // Downloads $labels = array( 'name' => _x('Downloads', 'post type general name'), 'singular_name' => _x('Download', 'post type singular name'), 'add_new' => _x('Add New', 'Download'), 'add_new_item' => __('Add New Download'), 'edit_item' => __('Edit Download'), 'new_item' => __('New Download'), 'view_item' => __('View Downloads'), 'search_items' => __('Search Downloads'), 'not_found' => __('No Downloads Found'), 'not_found_in_trash' => __('No Downloads found in Trash'), 'parent_item_colon' => '', 'menu_name' => 'Downloads', ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'query_var' => true, 'rewrite' => Array('slug'=>'downloads'), 'capability_type' => 'post', 'has_archive' => false, 'hierarchical' => true, 'menu_position' => 41, 'supports' => array('title','editor', 'excerpt','thumbnail', 'page-attributes', 'custom-fields','post-formats') ); register_post_type('downloads',$args); // Video Channels $labels = array( 'name' => _x('Video Channels', 'post type general name'), 'singular_name' => _x('Video Channel', 'post type singular name'), 'add_new' => _x('Add New', 'Video Channel'), 'add_new_item' => __('Add New Video Channel'), 'edit_item' => __('Edit Video Channel'), 'new_item' => __('New Video Channel'), 'view_item' => __('View Video Channel'), 'search_items' => __('Search Video Channels'), 'not_found' => __('No Video Channels Found'), 'not_found_in_trash' => __('No Video Channels found in Trash'), 'parent_item_colon' => '', 'menu_name' => 'Video Channels', ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'query_var' => true, 'rewrite' => Array('slug'=>'video-channels'), 'capability_type' => 'post', 'has_archive' => false, 'hierarchical' => true, 'menu_position' => 42, 'supports' => array('title','editor', 'excerpt','thumbnail', 'page-attributes', 'custom-fields') ); register_post_type('videochannels',$args); // About Us $labels = array( 'name' => _x('About us', 'post type general name'), 'singular_name' => _x('About us', 'post type singular name'), 'add_new' => _x('Add New', 'About us Page'), 'add_new_item' => __('Add New About us Page'), 'edit_item' => __('Edit About us Page'), 'new_item' => __('New About us Page'), 'view_item' => __('View About us Page'), 'search_items' => __('Search About us Pages'), 'not_found' => __('No About us Pages found'), 'not_found_in_trash' => __('No About us Pages found in Trash'), 'parent_item_colon' => '', 'menu_name' => 'About us Pages', ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'query_var' => true, 'rewrite' => Array('slug'=>'about-us'), 'capability_type' => 'post', 'has_archive' => false, 'hierarchical' => true, 'menu_position' => 43, 'supports' => array('title','editor', 'excerpt','thumbnail', 'page-attributes', 'custom-fields') ); register_post_type('aboutus',$args); // Page Furniture Post Type $labels = array( 'name' => _x('Page furniture', 'post type general name'), 'singular_name' => _x('Page furnitures', 'post type singular name'), 'add_new' => _x('Add New', 'Page furniture'), 'add_new_item' => __('Add New Page furniture'), 'edit_item' => __('Edit Page furniture'), 'new_item' => __('New Page furniture'), 'view_item' => __('View Page furniture'), 'search_items' => __('Search Page furniture'), 'not_found' => __('No Page furniture found'), 'not_found_in_trash' => __('No Page furniture found in Trash'), 'parent_item_colon' => '', 'menu_name' => 'Page Furniture', ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => false, 'query_var' => true, 'rewrite' => Array('slug'=>'page-furniture'), 'capability_type' => 'post', 'has_archive' => true, 'hierarchical' => false, 'menu_position' => 44, 'supports' => array('title','editor', 'excerpt','thumbnail', 'page-attributes', 'custom-fields') ); register_post_type('page-furniture',$args); // Testimonial Post Type $labels = array( 'name' => _x('Testimonials', 'post type general name'), 'singular_name' => _x('Testimonial', 'post type singular name'), 'add_new' => _x('Add New', 'Testimonial'), 'add_new_item' => __('Add New Testimonial'), 'edit_item' => __('Edit Testimonial'), 'new_item' => __('New Testimonial'), 'view_item' => __('View Testimonial'), 'search_items' => __('Search Testimonials'), 'not_found' => __('No Testimonials found'), 'not_found_in_trash' => __('No Testimonials found in Trash'), 'parent_item_colon' => '', 'menu_name' => 'Testimonials' ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'query_var' => true, 'rewrite' => Array('slug'=>'testimonials'), 'capability_type' => 'post', 'has_archive' => true, 'hierarchical' => false, 'menu_position' => 45, 'supports' => array('title','editor','revisions', 'author','excerpt','thumbnail', 'page-attributes') ); register_post_type('testimonials',$args); // VIDEOS $labels = array( 'name' => _x('Videos', 'post type general name'), 'singular_name' => _x('Video', 'post type singular name'), 'add_new' => _x('Add New', 'Video'), 'add_new_item' => __('Add New Video'), 'edit_item' => __('Edit Video'), 'new_item' => __('New Video'), 'view_item' => __('View Videos'), 'search_items' => __('Search Videos'), 'not_found' => __('No Video'), 'not_found_in_trash' => __('No Video found in Trash'), 'parent_item_colon' => '', 'menu_name' => 'Videos', ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => false, 'query_var' => true, 'rewrite' => Array('slug'=>'videos'), 'capability_type' => 'post', 'has_archive' => true, 'hierarchical' => false, 'menu_position' => 46, 'supports' => array('title','revisions', 'author','excerpt','thumbnail', 'page-attributes') ); register_post_type('videos',$args); } true, 'show_ui' => true, 'public' => true, 'show_admin_column' => true, 'public' => true, 'label' => __('Learning Category'), 'show_in_nav_menus' => true, 'labels' => array( 'add_new_item' => 'Add New Learning Category' ), 'query_var' => true, ) ); register_taxonomy( 'video-category', array( 'videos' ), array( 'hierarchical' => true, 'show_ui' => true, 'public' => true, 'show_admin_column' => true, 'public' => true, 'label' => __('Video Category'), 'show_in_nav_menus' => true, 'labels' => array( 'add_new_item' => 'Add New Video Category' ), 'query_var' => true, ) ); register_taxonomy( 'testimonial-category', array( 'testimonials' ), array( 'hierarchical' => true, 'show_ui' => true, 'public' => true, 'show_admin_column' => true, 'public' => true, 'label' => __('Testimonial Category'), 'show_in_nav_menus' => false, 'labels' => array( 'add_new_item' => 'Add New Testimonial Category' ), 'query_var' => true, ) ); register_taxonomy( 'page-furniture-category', array( 'page-furniture' ), array( 'hierarchical' => true, 'show_ui' => true, 'public' => true, 'show_admin_column' => true, 'public' => true, 'label' => __('Page furniture Category'), 'show_in_nav_menus' => false, 'labels' => array( 'add_new_item' => 'Add New Page Furniture Category' ), 'query_var' => true, ) ); register_taxonomy( 'expertise-category', array( 'publications','industrysector','practicearea','people','expertise-area','experience-item','director' ), array( 'hierarchical' => true, 'show_ui' => true, 'public' => true, 'show_admin_column' => true, 'label' => __('Expertise Category'), 'show_in_nav_menus' => true, 'labels' => array( 'add_new_item' => 'Add New Expertise Category' ), 'query_var' => true, ) ); register_taxonomy( 'location', array( 'people','locations','director' ), array( 'hierarchical' => true, 'show_ui' => true, 'public' => true, 'show_admin_column' => true, 'label' => __('Location'), 'show_in_nav_menus' => true, 'labels' => array( 'add_new_item' => 'Add New Location' ), 'query_var' => true, ) ); register_taxonomy( 'teamrole', array( 'people','locations','director' ), array( 'hierarchical' => true, 'show_ui' => true, 'public' => true, 'show_admin_column' => true, 'label' => __('Team Role'), 'show_in_nav_menus' => true, 'labels' => array( 'add_new_item' => 'Add New Team Role' ), 'query_var' => true, ) ); register_taxonomy( 'state', array( 'people','locations','director' ), array( 'hierarchical' => true, 'show_ui' => true, 'public' => true, 'show_admin_column' => true, 'label' => __('State'), 'show_in_nav_menus' => true, 'labels' => array( 'add_new_item' => 'Add New State' ), 'query_var' => true, ) ); register_taxonomy( 'clientlogo-category', array( 'clientlogo' ), array( 'hierarchical' => true, 'show_ui' => true, 'public' => true, 'show_admin_column' => true, 'public' => true, 'label' => __('Client Logo Category'), 'show_in_nav_menus' => false, 'labels' => array( 'add_new_item' => 'Add New Client Logo Category' ), 'query_var' => true, ) );register_taxonomy( 'boxout-position', array( 'boxouts' ), array( 'hierarchical' => true, 'show_ui' => true, 'public' => true, 'show_admin_column' => true, 'public' => true, 'label' => __('Boxout Position'), 'show_in_nav_menus' => false, 'labels' => array( 'add_new_item' => 'Add New Boxout Position' ), 'query_var' => true, ) ); Error in Measurement | Crystal Clear Mathematics
bannerabout
graemethin
bannerdive
graemethin2

Sign up to my Newsletter

EASIER THAN YOU THINK...
'; elseif(is_search('publications') ) : echo 'style="width:690px;margin-left:0px;">'; elseif (is_page(array('Testimonials','Quotations')) ) : echo 'style="margin:0px;">'; elseif(is_home()) : echo 'class="blogposts">'; else : echo'>'; endif; // ADD ENTRY TAG echo '
'; else : // EVERY OTHER PAGE echo'">'; endif; ?>

Error in Measurement

Two key equations describing Heisenberg's Uncertainty Principle in Quantum Mechanics. They relate to the inherent error in measurement.Nothing in real life can be measured exactly!  Absolutely nothing!

Every measurement that we make has inherent error.  We might say that we are 175 cm tall, but no one would claim that this figure is really 175.0000000000000000000000… with zeros stretching to infinity.  Scientists acknowledge this whenever they engage in research and write journal articles.  They have to take into account the errors due to the intrinsic nature of what is being measured, the smallest units being used, the equipment being used, the conditions under which the observations were being made, and even the method by which the observations were made.  All these are factored together to provide a figure that identifies the uncertainty of a measurement.  In journal articles you will find that measurements are written as 175.03 ± 0.67 cm, showing the error explicitly.  Many debates between scientists are concerning the validity and size of these errors.

For example, some scientist may claim to have detected a wobble in a star (due to some object in orbit around it).  They may have published a claim that the orbiting planet makes the velocity of the star relative to the Earth regularly fluctuate by up to 13.8 m/s.  This may sound impressive but, in the early days of Doppler Spectroscopy the error may have been, say, ± 895 m/s … far greater than the actual measurement!  This is a bit like saying that you measured your weight as 24 kg, but you could be ‘out’ (in error) by up to 1.5 tonnes!  It means that your original measurement was meaningless.  Debates such as these are quite common in scientific circles.

At the level of quantum mechanics, the matter of error gets even more interesting.  The very act of measuring one property or state of a particle reduces your ability to accurately measure another property or state.  There is an inherent balance and compromise in everything.  The two equations that I have portrayed above describe Heisenberg’s Uncertainty Principle.  This uncertainty lies at the foundation of all quantum mechanics.  Some people argue that this uncertainty lies at the root of the free will versus determinism debate and even our understanding of consciousness.  So, ultimately, our consideration of error can have some deep and philosophical consequences!

On a more practical day-to-day basis, however, it is good to be aware of errors in measurement.  I have encountered situations where someone, for example, has shared that they had room to fit a wardrobe 195 cm long.  A friend then purchased a wardrobe 194 cm long and it did not fit!  Why? Because the person making the original measurement foolishly rounded their measurement off to the nearest 5 cm … and rounded UP!  The actual measurement was closer to 193 cm.

On this page I will be explaining how we estimate error and how we report it.  In particular, you will learn about absolute error, relative error and percentage error.

your videos are more than helpful.Thank you a lot.i usually don`t comment and subscribe but your videos God!unbelievable.I love how you find out every single details which seem unimportant but actually the keys to become a smart students.Thank You!

Nahom T (on a CCM YouTube video explaining How to Memorise Mathematical Formulae)

See all Testimonials

Sign up to my Newsletter

Copyright © Crystal Clear Mathematics | All Rights Reserved

Website Design: www.webdesignnsw.com.au | Photography: Katieriversphotography.com.au