Custom Post Type Metabox in WordPress
How to Add a Metabox to a Custom Post Type
How to Add a Metabox to a Custom Post Type
Define a Custom Taxonomy add_action( ‘init’, ‘ww_create_taxonomies’ ); function ww_create_taxonomies() { // Add new taxonomy, NOT hierarchical (like tags) register_taxonomy( ‘ww_languages’, // Unique ID for the “Languages” taxonomy. (always use a prefix) ‘ww_products’, // The post-type(s) this taxonomy can be applied-to . array( ‘hierarchical’ => false, ‘labels’ => array( ‘name’ => _x( ‘Languages’, ‘taxonomy general
Define a Custom Post Type Always attach register_post_type() to the init hook. add_action( ‘init’, ‘ww_create_posttype’ ); function ww_create_posttype() { register_post_type( ‘ww_portfolio’, array( // The unique post type ID, should be prefixed. ‘labels’ => array( // UI labels for screens, links, buttons and page titles in the admin. ‘name’ => __( ‘Portfolio’ ), ‘singular_name’ => __(