आप उदाहरण के कोड का पालन करते हुए कस्टम पोस्ट प्रकार बना सकते हैं:
function ts_post_type_test() {
register_post_type('Test',
array(
'label' => __('Test'),
'public' => true,
'show_ui' => true,
'show_in_nav_menus' => false,
'menu_position' => 5,
'capability_type' => 'post',
'texonomies' => array('category'),
'supports' => array('title','editor','thumbnail'),
)
);
}
WordPress साइट लिंक: http://codex.wordpress.org/Function_Reference/register_post_type
विशेष पोस्ट उपयोग के लिए बनाएं अलग वर्ग के लिए लिंक का पालन:
http://codex.wordpress.org/Function_Reference/register_taxonomy
उदाहरण कोड:
register_taxonomy('name of taxonomy', 'post name',array("hierarchical" => true,"label" => "Label Category","singular_label" => "label of taxonomy",'update_count_callback' => '_update_post_term_count','query_var' => true,'rewrite' => array('slug' => 'slug name of new registered taxonomy', 'with_front' => false),'public' => true,'show_ui' => true,'show_tagcloud' => true,'_builtin' => false,'show_in_nav_menus' => false));
अपने संपादकों पर भरोसा करें क्या आपको वास्तव में ग्रैन्युलरिटी के स्तर की आवश्यकता है? – thenetimp