Return to Snippet

Revision: 37720
at December 16, 2010 02:07 by rccc


Initial Code
add_action('init', 'post_type_actions_culturelles');
function post_type_actions_culturelles() {
	register_post_type( 'actions_culturelles',
                array( 
											'label' => __('Actions'), 
											'public' => true, 
											'show_ui' => true, 
											'hierarchical' => false,
    									'capability_type' => 'post',
											'supports' => array( 'title',	'editor', 'thumbnail'),
      								'rewrite' => array('slug' => 'actions-culturelles', 'with_front' => false)
								));
	register_taxonomy_for_object_type('post_tag', 'actions_culturelles');
}

Initial URL
http://codex.wordpress.org/Custom_Post_Types

Initial Description

                                

Initial Title
wordpress custom post type

Initial Tags
wordpress

Initial Language
PHP