Showing posts with label open-source. Show all posts
Showing posts with label open-source. Show all posts

Monday, 12 March 2012

How to add custom post type in wordpress

Open “function.php” add the following code to add new custom post type :
<?php
add_action(‘init’, ‘featured_post_register’);

function featured_post_register() {
$labels = array(
‘name’ => _x(‘Featured Posts’, ‘post type general name’),
‘singular_name’ => _x(‘Featured Posts’, ‘post type singular name’),
‘add_new’ => _x(‘Add New’, ‘featured posts’),
‘add_new_item’ => __(‘Add New Featured Posts’),
‘edit_item’ => __(‘Edit Featured Posts’),
‘new_item’ => __(‘New Featured Posts’),
‘view_item’ => __(‘View Featured Posts’),
‘parent_item_colon’ => ”
);

Read more...

Featured Post

हां भइया, जीवन है ये! - मुंशीप्रेमचंद को समर्पित!

शीर्षक: हां भइया, जीवन है ये! हां भइया, जीवन है ये — ना कोई मेले की चकाचौंध, ना छप्पन भोग, बस आधी रोटी, और फटी धोती का संजोग। टूटे खपरैल में...