How to create a custom post type in WordPress 3.0
Category: Wordpress 0WordPress 2.9 currently have two types of articles: post and pages.
WordPress 3.0 comes with an important novelty: types of articles.
What is so special ?
Suppose you have a music industry news site. With this new organization you can have a section of Albums / disks kept separated from the News section. Or maybe a section with your artists. You cand do that with the following code:
1
<pre>$args = array(
'label' => __('Discuri'),
'singular_label' => __('Discuri'),
'public' => true,
'show_ui' => true,
'capability_type' => 'page',
'hierarchical' => false,
'rewrite' => true,
'query_var' => 'discuri',
'supports' => array('title', 'thumbnail')
);
register_post_type( 'discuri' , $args );</pre>
If you liked the article share it by Twitter, Facebook and Google +1.







Google Plus Opens first A...
Google has unveiled the first developer application...
Seagate GoFlex – th...
It’s been a little over a year since Seagate...
Baidu to have a new mobil...
Baidu, the biggest search engine from China, ,...
How to Download YouTube S...
YouTube is a video-sharing website, created by three...
How to Download YouTube S...
Youtube is the largest site with movies and clips....