Created
June 12, 2014 09:01
-
-
Save Dexterstat/d7ecbe608d13b23deb78 to your computer and use it in GitHub Desktop.
New custom post type wordpres
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$labels = array ( | |
'name' => _x ( 'Orase', 'Post Type General Name', 'text_domain' ), | |
'singular_name' => _x ( 'Oras', 'Post Type Singular Name', 'text_domain' ), | |
'menu_name' => __ ( 'Orase', 'text_domain' ), | |
'parent_item_colon' => __ ( 'Oras parinte:', 'text_domain' ), | |
'all_items' => __ ( 'Toate orasele', 'text_domain' ), | |
'view_item' => __ ( 'Vezi orase', 'text_domain' ), | |
'add_new_item' => __ ( 'Adauga oras', 'text_domain' ), | |
'add_new' => __ ( 'Oras nou', 'text_domain' ), | |
'edit_item' => __ ( 'Editeaza oras', 'text_domain' ), | |
'update_item' => __ ( 'Actualizeaza oras', 'text_domain' ), | |
'search_items' => __ ( 'Cauta oras', 'text_domain' ), | |
'not_found' => __ ( 'Nu au fost gasite orase', 'text_domain' ), | |
'not_found_in_trash' => __ ( 'Nu exista orase aici', 'text_domain' ) | |
); | |
$args = array ( | |
'label' => __ ( 'orase', 'text_domain' ), | |
'description' => __ ( 'Informatii despre orase', 'text_domain' ), | |
'labels' => $labels, | |
'supports' => array ( | |
'title', | |
'editor', | |
'excerpt', | |
'author', | |
'thumbnail', | |
'comments', | |
'trackbacks', | |
'revisions', | |
'custom-fields', | |
'page-attributes' | |
), | |
'taxonomies' => array ( | |
'category', | |
'orase', | |
'judete' | |
), | |
'hierarchical' => false, | |
'public' => true, | |
'show_ui' => true, | |
'show_in_menu' => true, | |
'show_in_nav_menus' => true, | |
'show_in_admin_bar' => true, | |
'menu_position' => 5, | |
'menu_icon' => '', | |
'can_export' => true, | |
'has_archive' => true, | |
'exclude_from_search' => false, | |
'publicly_queryable' => true, | |
'capability_type' => 'post' | |
); | |
register_post_type ( 'orase', $args ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment