_x( 'Portfolios', 'Portfolios', 'reviver' ), 'singular_name' => _x( 'Portfolio', 'Portfolio', 'reviver' ), 'menu_name' => __( 'Portfolios', 'reviver' ), 'parent_item_colon' => __( 'Parent Portoflio:', 'reviver' ), 'all_items' => __( 'All Portoflios', 'reviver' ), 'view_item' => __( 'View Portoflio', 'reviver' ), 'add_new_item' => __( 'Add New Portoflio', 'reviver' ), 'add_new' => __( 'Add New', 'reviver' ), 'edit_item' => __( 'Edit Portoflio', 'reviver' ), 'update_item' => __( 'Update Portoflio', 'reviver' ), 'search_items' => __( 'Search Portoflio', 'reviver' ), 'not_found' => __( 'Not found', 'reviver' ), 'not_found_in_trash' => __( 'Not found in Trash', 'reviver' ), ); $rewrite = array( 'slug' => 'portfolios', 'with_front' => true, 'pages' => true, 'feeds' => true, ); $args = array( 'label' => __( 'Portfolio', 'reviver' ), 'description' => __( 'Portfolio Description', 'reviver' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'revisions' ), 'taxonomies' => array( 'portfolio-category'), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'menu_position' => 5, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'rewrite' => $rewrite, 'capability_type' => 'page', ); register_post_type( 'portfolio', $args ); $labels = array( 'name' => __('Portfolio Categories', 'reviver'), 'singular_name' => __('Portfolio Category', 'reviver'), 'search_items' => __('Search Portfolio Category', 'reviver'), 'all_items' => __('All Portfolio Category', 'reviver'), 'parent_item' => __('Parent Portfolio Category', 'reviver'), 'parent_item_colon' => __('Parent Portfolio Category:', 'reviver'), 'edit_item' => __('Edit Portfolio Category', 'reviver'), 'update_item' => __('Update Portfolio Category', 'reviver'), 'add_new_item' => __('Add New Portfolio Category', 'reviver'), 'new_item_name' => __('New Portfolio Category', 'reviver'), 'menu_name' => __('Categories', 'reviver') ); $args = array( 'hierarchical' => true, 'labels' => $labels, 'show_ui' => true, 'query_var' => true, 'query_var' => true, 'show_in_nav_menus' => true, 'rewrite' => array( 'slug' => 'portfolio', 'hierarchical' => true ) ); register_taxonomy('portfolio-category', 'portfolio', $args);}// Hook into the 'init' actionadd_action( 'init', 'portfolio_post_type', 0 );/** Testimonials Post Type **/function testimonials_post_type() { $labels = array( 'name' => _x( 'Testimonials', 'Testimonials', 'reviver' ), 'singular_name' => _x( 'Testimonial', 'Testimonial', 'reviver' ), 'menu_name' => __( 'Testimonials', 'reviver' ), 'parent_item_colon' => __( 'Parent Testimonial:', 'reviver' ), 'all_items' => __( 'All Testimonial', 'reviver' ), 'view_item' => __( 'View Testimonial', 'reviver' ), 'add_new_item' => __( 'Add New Testimonial', 'reviver' ), 'add_new' => __( 'Add New', 'reviver' ), 'edit_item' => __( 'Edit Testimonial', 'reviver' ), 'update_item' => __( 'Update Testimonial', 'reviver' ), 'search_items' => __( 'Search Testimonial', 'reviver' ), 'not_found' => __( 'Not found', 'reviver' ), 'not_found_in_trash' => __( 'Not found in Trash', 'reviver' ), ); $rewrite = array( 'slug' => 'testimonial', 'with_front' => true, 'pages' => true, 'feeds' => true, ); $args = array( 'label' => __( 'Testimonial', 'reviver' ), 'description' => __( 'Testimonial Description', 'reviver' ), 'labels' => $labels, 'supports' => array( 'title', 'editor','revision', 'thumbnail'), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'menu_position' => 6, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'rewrite' => $rewrite, 'capability_type' => 'page', ); register_post_type( 'testimonial', $args );}// Hook into the 'init' actionadd_action( 'init', 'testimonials_post_type', 0 );/** Clients Post Type **/function clients_post_type() { $labels = array( 'name' => _x( 'Clients', 'Clients', 'reviver' ), 'singular_name' => _x( 'Client', 'Client', 'reviver' ), 'menu_name' => __( 'Clients', 'reviver' ), 'parent_item_colon' => __( 'Parent Client:', 'reviver' ), 'all_items' => __( 'All Clients', 'reviver' ), 'view_item' => __( 'View Client', 'reviver' ), 'add_new_item' => __( 'Add New Client', 'reviver' ), 'add_new' => __( 'Add New', 'reviver' ), 'edit_item' => __( 'Edit Client', 'reviver' ), 'update_item' => __( 'Update Client', 'reviver' ), 'search_items' => __( 'Search Client', 'reviver' ), 'not_found' => __( 'Not found', 'reviver' ), 'not_found_in_trash' => __( 'Not found in Trash', 'reviver' ), ); $rewrite = array( 'slug' => 'clients', 'with_front' => true, 'pages' => true, 'feeds' => true, ); $args = array( 'label' => __( 'Clients', 'reviver' ), 'description' => __( 'Client Description', 'reviver' ), 'labels' => $labels, 'supports' => array( 'title', 'editor','revision', 'thumbnail'), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'menu_position' => 6, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'rewrite' => $rewrite, 'capability_type' => 'page', ); register_post_type( 'clients', $args );}// Hook into the 'init' actionadd_action( 'init', 'clients_post_type', 0 );/** Clients Post Type **/function mfields_set_default_object_terms( $post_id, $post ) { if ( 'publish' === $post->post_status && $post->post_type === 'portfolio' ) { $defaults = array( 'portfolio-category' => array( 'uncategorized' ) //'your_taxonomy_id' => array( 'your_term_slug', 'your_term_slug' ) ); $taxonomies = get_object_taxonomies( $post->post_type ); foreach ( (array) $taxonomies as $taxonomy ) { $terms = wp_get_post_terms( $post_id, $taxonomy ); if ( empty( $terms ) && array_key_exists( $taxonomy, $defaults ) ) { wp_set_object_terms( $post_id, $defaults[$taxonomy], $taxonomy ); } } }}add_action( 'save_post', 'mfields_set_default_object_terms', 100, 2 );/** FAQs Post Type **/function faqs_post_type() { $labels = array( 'name' => _x( 'FAQs', 'FAQs', 'reviver' ), 'singular_name' => _x( 'FAQ', 'FAQ', 'reviver' ), 'menu_name' => __( 'FAQs', 'reviver' ), 'parent_item_colon' => __( 'Parent FAQs:', 'reviver' ), 'all_items' => __( 'All FAQs', 'reviver' ), 'view_item' => __( 'View FAQs', 'reviver' ), 'add_new_item' => __( 'Add New FAQs', 'reviver' ), 'add_new' => __( 'Add New', 'reviver' ), 'edit_item' => __( 'Edit FAQs', 'reviver' ), 'update_item' => __( 'Update FAQs', 'reviver' ), 'search_items' => __( 'Search FAQs', 'reviver' ), 'not_found' => __( 'Not found', 'reviver' ), 'not_found_in_trash' => __( 'Not found in Trash', 'reviver' ), ); $rewrite = array( 'slug' => 'faqs', 'with_front' => true, 'pages' => true, 'feeds' => true, ); $args = array( 'label' => __( 'FAQs', 'reviver' ), 'description' => __( 'FAQs Description', 'reviver' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'revisions' ), 'taxonomies' => array( 'faq-category'), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'menu_position' => 5, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'rewrite' => $rewrite, 'capability_type' => 'page', ); register_post_type( 'faq', $args ); $labels = array( 'name' => __('FAQs Categories', 'reviver'), 'singular_name' => __('FAQs Category', 'reviver'), 'search_items' => __('Search FAQs Category', 'reviver'), 'all_items' => __('All FAQs Category', 'reviver'), 'parent_item' => __('Parent FAQs Category', 'reviver'), 'parent_item_colon' => __('Parent FAQs Category:', 'reviver'), 'edit_item' => __('Edit FAQs Category', 'reviver'), 'update_item' => __('Update FAQs Category', 'reviver'), 'add_new_item' => __('Add New FAQs Category', 'reviver'), 'new_item_name' => __('New FAQs Category', 'reviver'), 'menu_name' => __('Categories', 'reviver') ); $args = array( 'hierarchical' => true, 'labels' => $labels, 'show_ui' => true, 'query_var' => true, 'query_var' => true, 'show_in_nav_menus' => true, 'rewrite' => array( 'slug' => 'faq', 'hierarchical' => true ) ); register_taxonomy('faq-category', 'faq', $args);}// Hook into the 'init' actionadd_action( 'init', 'faqs_post_type', 0 );if( ! function_exists('reviver_registration_form')){function reviver_registration_form( $username, $password, $email, $website, $first_name, $last_name, $nickname, $bio ) { echo '
'.__("Registration complete.",'reviver').' '.__("Go to",'reviver').' '.__("login page",'reviver').'
'; $output .=''.$msg.'
'; $output .='