Permalink
Browse files

adding custom post "study"

  • Loading branch information...
1 parent f33fb74 commit 4a058b23f7e157fc8c56a634e0aa8cba7b0817f2 @danieleguido committed Mar 20, 2012
Showing with 14 additions and 0 deletions.
  1. +14 −0 functions.php
View
@@ -1,4 +1,18 @@
<?php
+add_action( 'init', 'create_post_type' );
+function create_post_type() {
+ register_post_type( 'study',
+ array(
+ 'labels' => array(
+ 'name' => __( 'study' ),
+ 'singular_name' => __( 'Study' )
+ ),
+ 'public' => true,
+ 'has_archive' => true,
+ )
+ );
+}
+
/**
* activate theme options
*/

0 comments on commit 4a058b2

Please sign in to comment.