__( 'Newsletter Ads'), 'singular_name' => __( 'SAd' ), 'rewrite' => array('slug' => __( 'newsletterads' )), 'add_new' => _x('Add New', 'Ad'), 'add_new_item' => __('Add New Ad'), 'edit_item' => __('Edit Ad'), 'new_item' => __('New Ad'), 'view_item' => __('View Ad'), 'search_items' => __('Search Ads'), 'not_found' => __('No ads found'), 'not_found_in_trash' => __('No ads found in Trash'), 'parent_item_colon' => '' ); $adsupports = array('title','thumbnail', 'editor'); $ads_args = array( 'labels' => $adslabels, 'singular_label' => __('Ad'), 'public' => true, 'show_ui' => true, 'capability_type' => 'post', 'query_var' => true, 'has_archive' => false, 'hierarchical' => true, 'exclude_from_search' => true, 'show_in_nav_menus' => false, 'supports' => $adsupports, 'rewrite' => true, 'menu_position' => 80 ); register_post_type('newsletterads',$ads_args); } add_action('init', 'register_newsletterads_posttype'); # ------------------------------------------------------------ # registration code for slides post type # ------------------------------------------------------------ function register_slides_posttype() { $slideslabels = array( 'name' => __( 'Slides'), 'singular_name' => __( 'Slide' ), 'rewrite' => array('slug' => __( 'Slides' )), 'add_new' => _x('Add New', 'Slide'), 'add_new_item' => __('Add New Slide'), 'edit_item' => __('Edit Slide'), 'new_item' => __('New Slide'), 'view_item' => __('View Slide'), 'search_items' => __('Search Slides'), 'not_found' => __('No slides found'), 'not_found_in_trash' => __('No slides found in Trash'), 'parent_item_colon' => '' ); $supports = array('title','thumbnail', 'excerpt','page-attributes'); $slides_args = array( 'labels' => $slideslabels, 'singular_label' => __('Slide'), 'public' => false, 'show_ui' => true, 'capability_type' => 'post', 'query_var' => true, 'has_archive' => false, 'hierarchical' => true, 'exclude_from_search' => true, 'show_in_nav_menus' => false, 'supports' => $supports, 'rewrite' => true, 'menu_position' => 27 ); register_post_type('slide',$slides_args); } add_action('init', 'register_slides_posttype'); # ------------------------------------------------------------ # registration code for swap shop post type # ------------------------------------------------------------ function register_swaps_posttype() { $swapslabels = array( 'name' => __( 'Swap Shop'), 'singular_name' => __( 'Swap' ), 'rewrite' => array('slug' => __( 'Swap' )), 'add_new' => _x('Add New', 'Swap'), 'add_new_item' => __('Add New Swap'), 'edit_item' => __('Edit Swap'), 'new_item' => __('New Swap'), 'view_item' => __('View Swap'), 'search_items' => __('Search Swaps'), 'not_found' => __('No swaps found'), 'not_found_in_trash' => __('No swaps found in Trash'), 'parent_item_colon' => '' ); $swapsupports =array('title','editor','thumbnail', 'excerpt', 'author','comments'); $swaps_args = array( 'labels' => $swapslabels, 'singular_label' => __('Swap'), 'public' => true, 'show_ui' => true, 'capability_type' => 'post', 'query_var' => true, 'has_archive' => true, 'hierarchical' => false, 'exclude_from_search' => false, 'show_in_nav_menus' => false, 'supports' => $swapsupports, 'rewrite' => array('slug' => 'swap', 'with_front' => false), 'menu_position' => 29 ); register_post_type('swap',$swaps_args); } add_action('init', 'register_swaps_posttype'); # ------------------------------------------------------------ # registration code for beaut directory # ------------------------------------------------------------ function register_listings_posttype() { $listinglabels = array( 'name' => __( 'Shop'), 'singular_name' => __( 'listing' ), 'rewrite' => array('slug' => __( 'Shop' )), 'add_new' => _x('Add New', 'Listing'), 'add_new_item' => __('Add New Listing'), 'edit_item' => __('Edit Listing'), 'new_item' => __('New Listings'), 'view_item' => __('View Listing'), 'search_items' => __('Search Listings'), 'not_found' => __('No listings found'), 'not_found_in_trash' => __('No listings found in Trash'), 'parent_item_colon' => '' ); $listingsupports =array('title','editor','thumbnail', 'excerpt', 'author','comments'); $listing_args = array( 'labels' => $listinglabels, 'singular_label' => __('Shop'), 'public' => true, 'show_ui' => true, 'capability_type' => 'post', 'query_var' => true, 'has_archive' => true, 'hierarchical' => false, 'exclude_from_search' => false, 'show_in_nav_menus' => false, 'supports' => $listingsupports, 'rewrite' => array('slug' => 'shop', 'with_front' => false), 'menu_position' => 30 ); register_post_type('listing',$listing_args); } add_action('init', 'register_listings_posttype'); # ------------------------------------------------------------ # Category Taxonomy for listings # ------------------------------------------------------------ function register_listingtype_tax() { $labels = array( 'name' => _x( 'Type', 'taxonomy general name' ), 'singular_name' => _x( 'Listing Type', 'taxonomy singular name' ), 'menu_name' => 'Listing Types', 'add_new' => _x( 'Add New', 'Type'), 'add_new_item' => __( 'Add New Type' ), 'edit_item' => __( 'Edit Type' ), 'new_item' => __( 'New Type' ), 'view_item' => __( 'View Type' ), 'search_items' => __( 'Search Type' ), 'not_found' => __( 'No Type found' ), 'not_found_in_trash' => __( 'No Type found in Trash' ), 'frontend_name' => __( 'Listing Type' ), ); $pages = array('listing'); $args = array( 'labels' => $labels, 'singular_label' => __('Type'), 'public' => true, 'show_ui' => true, 'hierarchical' => true, 'show_tagcloud' => false, 'show_in_nav_menus' => true, 'rewrite' => array( 'slug' => 'listing-type', 'with_front' => false,'hierarchical' => true ) ); register_taxonomy('listingtype','listing', $args); } add_action('init', 'register_listingtype_tax'); function register_location_tax() { $labels = array( 'name' => _x( 'Location', 'taxonomy general name' ), 'singular_name' => _x( 'Location', 'taxonomy singular name' ), 'add_new' => _x( 'Add New Location', 'Location'), 'menu_name' => 'Listing Locations', 'add_new_item' => __( 'Add New Location' ), 'edit_item' => __( 'Edit Location' ), 'new_item' => __( 'New Location' ), 'view_item' => __( 'View Location' ), 'search_items' => __( 'Search Locations' ), 'not_found' => __( 'No Location found' ), 'not_found_in_trash' => __( 'No Location found in Trash' ), 'frontend_name' => __( 'Location' ), ); $pages = array('listing'); $args = array( 'labels' => $labels, 'singular_label' => __('Location'), 'public' => true, 'show_ui' => true, 'hierarchical' => true, 'show_tagcloud' => false, 'show_in_nav_menus' => true, 'rewrite' => array( 'slug' => 'location', 'with_front' => false,'hierarchical' => true ), ); register_taxonomy('location','listing', $args); } add_action('init', 'register_location_tax'); # ------------------------------------------------------------ # registration code for Awards # ------------------------------------------------------------ function register_awards_posttype() { $awardlabels = array( 'name' => __( 'Awards'), 'singular_name' => __( 'award' ), 'rewrite' => array('slug' => __( 'Awards' )), 'add_new' => _x('Add New Post', 'Award'), 'add_new_item' => __('Add New Award Post'), 'edit_item' => __('Edit Award Post'), 'new_item' => __('New Award Posts'), 'view_item' => __('View Award Posts'), 'search_items' => __('Search Award Posts'), 'not_found' => __('No award posts found'), 'not_found_in_trash' => __('No award posts found in Trash'), 'parent_item_colon' => '' ); $awardsupports =array('title','editor','thumbnail', 'excerpt', 'author','comments'); $award_args = array( 'labels' => $awardlabels, 'singular_label' => __('Award Post'), 'public' => true, 'show_ui' => true, 'capability_type' => 'post', 'has_archive' => true, 'hierarchical' => false, 'exclude_from_search' => false, 'show_in_nav_menus' => false, 'taxonomies' => array('tag','awardtype'), 'supports' => $awardsupports, 'rewrite' => array('slug' => 'beautawards', 'with_front' => true), 'menu_position' => 26 ); register_post_type('award',$award_args); } add_action('init', 'register_awards_posttype'); # ------------------------------------------------------------ # Category Taxonomy for awards # ------------------------------------------------------------ function register_awardtype_tax() { $labels = array( 'name' => _x( 'Award Types', 'taxonomy general name' ), 'singular_name' => _x( 'Award Type', 'taxonomy singular name' ), 'add_new' => _x( 'Add New', 'Type'), 'add_new_item' => __( 'Add New Award Type' ), 'edit_item' => __( 'Edit Award Type' ), 'new_item' => __( 'New Award Type' ), 'view_item' => __( 'View Award Type' ), 'search_items' => __( 'Search Award Types' ), 'not_found' => __( 'No Award types found' ), 'not_found_in_trash' => __( 'No Awards Types found in Trash' ), 'frontend_name' => __( 'Award Type' ), ); $pages = array('award'); $args = array( 'labels' => $labels, 'singular_label' => __('Award Type'), 'public' => true, 'show_ui' => true, 'hierarchical' => true, 'show_tagcloud' => false, 'show_in_nav_menus' => true, 'rewrite' => array( 'slug' => 'award-type', 'with_front' => false,'hierarchical' => true ) ); register_taxonomy('awardtype','award', $args); } add_action('init', 'register_awardtype_tax');