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...
Showing posts with label open-source. Show all posts
Showing posts with label open-source. Show all posts
Subscribe to:
Posts (Atom)
Featured Post
हां भइया, जीवन है ये! - मुंशीप्रेमचंद को समर्पित!
शीर्षक: हां भइया, जीवन है ये! हां भइया, जीवन है ये — ना कोई मेले की चकाचौंध, ना छप्पन भोग, बस आधी रोटी, और फटी धोती का संजोग। टूटे खपरैल में...
-
गणेश चतुर्थी भारत के प्रमुख त्योहारों में से एक है, जिसे बड़े धूमधाम और श्रद्धा के साथ मनाया जाता है। भगवान गणेश, जिन्हें 'विघ्नहर्ता...
-
Thank God! 18 th June, I become a dad of little angel. I was very happy on that time, before that I was in so much tension that I cannot tr...
-
भारत के साहित्यिक परिदृश्य में कई ऐसे कवि और लेखक हुए हैं जिन्होंने अपनी रचनाओं से समाज को न केवल प्रेरित किया बल्कि साहित्य में नए प्रतिमान...