array( 'name' => __( 'RD Gallery' ), 'singular_name' => __( 'Amazing RD Gallery' ), 'add_new_item' => __( 'Add New Item' ) ), 'public' => true, 'supports' => array('title'), 'has_archive' => true, 'rewrite' => array('slug' => 'rd-gallery'), 'menu_icon' => '', 'menu_position' => 20, )); } add_action('init','rd_gallery_cpost'); // Register Custom Texonomy function rdgallery_custom_post_tex() { register_taxonomy( 'rdgallery_cat', 'rdgallery', array( 'hierarchical' => true, 'label' => 'RD Gallery Category', 'query_var' => true, 'show_admin_column' => true, 'rewrite' => array( 'slug' => 'she-category', 'with_front' => true ) ) ); } add_action( 'init', 'rdgallery_custom_post_tex'); // Load Option Framework Main Metaboxes new VP_Metabox(array ( 'id' => 'rdgallery-meta', 'types' => array('rdgallery'), 'title' => __('Amazing RD Gallery ', 'vp_textdomain'), 'priority' => 'high', 'template' => VP_RDGALLERY_DIR . '/admin/metabox/custom-rd-meta.php' )); //Include Custom Data Sources require_once 'admin/metabox/pick_data_eff.php'; // Load Option Framework Right Side Metaboxes new VP_Metabox(array ( 'id' => 'rdgallery-side-meta', 'types' => array('rdgallery'), 'title' => __('RD Gallery Shortcode Here', 'vp_textdomain'), 'priority' => 'high', 'context' => 'side', 'template' => VP_RDGALLERY_DIR . '/admin/metabox/rightside.php' )); // custom post icon require_once 'admin/metabox/customicon.php'; // all style shortcodes require_once(VP_RDGALLERY_DIR . 'admin/rdgallery_shortcode.php'); ?>