Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adding custom post "study"

  • Loading branch information...
commit 4a058b23f7e157fc8c56a634e0aa8cba7b0817f2 1 parent f33fb74
@danieleguido authored
Showing with 14 additions and 0 deletions.
  1. +14 −0 functions.php
View
14 functions.php
@@ -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
*/
Please sign in to comment.
Something went wrong with that request. Please try again.