Posted By

rccc on 12/16/10


Tagged

wordpress custom-post-type


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

ZedVex


wordpress custom post type


 / Published in: PHP
 

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

  1. add_action('init', 'post_type_actions_culturelles');
  2. function post_type_actions_culturelles() {
  3. register_post_type( 'actions_culturelles',
  4. 'label' => __('Actions'),
  5. 'public' => true,
  6. 'show_ui' => true,
  7. 'hierarchical' => false,
  8. 'capability_type' => 'post',
  9. 'supports' => array( 'title', 'editor', 'thumbnail'),
  10. 'rewrite' => array('slug' => 'actions-culturelles', 'with_front' => false)
  11. ));
  12. register_taxonomy_for_object_type('post_tag', 'actions_culturelles');
  13. }

Report this snippet  

You need to login to post a comment.