Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /var/www/web284/html/wp-content/themes/splendor/framework/ |
Current File : //var/www/web284/html/wp-content/themes/splendor/framework/portfolio-cpt.php |
<?php // CUSTOM POST TYPES function justins_custom_post_types() { // Portfolio $labels_portfolio = array( 'add_new' => 'Add New', 'portfolio-type', 'add_new_item' => 'Add New Portfolio Post', 'edit_item' => 'Edit Portfolio Post', 'menu_name' => 'Portfolio', 'name' => 'Portfolio', 'post type general name', 'new_item' => 'New Portfolio Post', 'not_found' => 'No portfolio posts found', 'not_found_in_trash' => 'No portfolio posts found in Trash', 'parent_item_colon' => '', 'singular_name' => 'Portfolio Post', 'post type singular name', 'search_items' => 'Search Portfolio Posts', 'view_item' => 'View Portfolio Post', ); $args_portfolio = array( 'capability_type' => 'post', 'has_archive' => true, 'hierarchical' => true, 'labels' => $labels_portfolio, 'menu_position' => 4, 'public' => true, 'publicly_queryable' => true, 'query_var' => true, 'show_in_menu' => true, 'show_ui' => true, 'supports' => array( 'comments', 'editor', 'excerpt', 'thumbnail', 'title' ), 'singular_label' => 'Portfolio', ); register_post_type( 'portfolio-type', $args_portfolio ); } add_action( 'init', 'justins_custom_post_types' ); // CUSTOM TAXONOMIES function justins_custom_taxonomies() { // Portfolio Categories $labels = array( 'add_new_item' => 'Add New Category', 'all_items' => 'All Categories' , 'edit_item' => 'Edit Category' , 'name' => 'Portfolio Categories', 'taxonomy general name' , 'new_item_name' => 'New Genre Category' , 'menu_name' => 'Categories' , 'parent_item' => 'Parent Category' , 'parent_item_colon' => 'Parent Category:', 'singular_name' => 'Portfolio Category', 'taxonomy singular name' , 'search_items' => 'Search Categories' , 'update_item' => 'Update Category' , ); register_taxonomy( 'portfolio-category', array( 'portfolio-type' ), array( 'hierarchical' => true, 'labels' => $labels, 'query_var' => 'mtype', 'rewrite' => array( 'slug' => 'portfolio-type/category' ), 'show_ui' => true, )); // Portfolio Tags $labels = array( 'add_new_item' => 'Add New Tag' , 'all_items' => 'All Tags' , 'edit_item' => 'Edit Tag' , 'menu_name' => 'Portfolio Tags' , 'name' => 'Portfolio Tags', 'taxonomy general name' , 'new_item_name' => 'New Genre Tag' , 'parent_item' => 'Parent Tag' , 'parent_item_colon' => 'Parent Tag:' , 'singular_name' => 'Portfolio Tag', 'taxonomy singular name' , 'search_items' => 'Search Tags' , 'update_item' => 'Update Tag' , ); register_taxonomy( 'portfolio-tags', array( 'portfolio-type' ), array( 'hierarchical' => true, 'labels' => $labels, 'query_var' => true, 'rewrite' => array( 'slug' => 'portfolio-type/tag' ), 'show_ui' => true, )); } add_action( 'init', 'justins_custom_taxonomies', 0 ); ?>
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare