From 0410914d391db043c684b874cc9b14523cb3e502 Mon Sep 17 00:00:00 2001 From: Christopher M Cerrigione Date: Fri, 24 Jul 2015 16:37:51 -0400 Subject: [PATCH] Created main files --- uc-guides.js | 3 +++ uc-guides.php | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 uc-guides.js create mode 100644 uc-guides.php diff --git a/uc-guides.js b/uc-guides.js new file mode 100644 index 0000000..b432f77 --- /dev/null +++ b/uc-guides.js @@ -0,0 +1,3 @@ +jQuery(document).ready(function($){ + +}); \ No newline at end of file diff --git a/uc-guides.php b/uc-guides.php new file mode 100644 index 0000000..31974aa --- /dev/null +++ b/uc-guides.php @@ -0,0 +1,71 @@ + 'Guides', + 'singular_name' => 'Guide', + 'add_new' => 'New Guide', + 'add_new_item' => 'Add New Guide', + 'edit_item' => 'Edit Guide', + 'view_item' => 'View Guide', + 'search_items' => 'Search Guides' + ); + + $args = array( + 'label' => 'Guides', + 'labels' => $labels, + 'description' => 'Awesome', + 'public' => true, + 'menu_position' => 35, + 'menu_icon' => 'dashicons-media-document', + 'supports' => array( 'title','tags', 'thumbnail', 'revisions', 'page-attributes','author', 'editor' ), + 'has_archive' => true + ); + + register_post_type( 'guide', $args ); + + register_taxonomy( 'guide_category', 'guide', + array( + 'label' => 'Guide Categories', + 'labels' => array( + 'name' => 'Guide Categories', + 'singular_name' => 'Guide Category', + 'search_items' => 'Search Guide Categories', + 'edit_item' => 'Edit Guide Category', + 'view_item' => 'View Guide Category', + 'update_item' => 'Update GuideCategory', + 'add_new_item' => 'Add new Guide Category', + 'new_item_name' => 'New Guide Category' + ), + 'public' => true, + 'hierarchical' => true, + 'rewrite' => array('hierarchical' => true ) + ) + ); + + register_taxonomy( 'guide_tag', 'guide', + array( + 'label' => 'Tags', + 'labels' => array( + 'name' => 'Tags', + 'singular_name' => 'Tag', + 'search_items' => 'Search Tags', + 'edit_item' => 'Edit ', + 'view_item' => 'Tag.viewitem', + 'update_item' => 'Update Tag', + 'add_new_item' => 'Add new tags', + 'new_item_name' => 'Tag.newitemname' + ), + 'public' => true, + 'hierarchical' => false + ) + ); + +} +add_action( 'init', 'create_custom_guide_post_type', 0 ); +?> \ No newline at end of file