Created
June 12, 2014 08:59
-
-
Save Dexterstat/2ae9836c6989b1645cce to your computer and use it in GitHub Desktop.
new taxonomy wordpresss
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', 'taxonomy general name' ), | |
'singular_name' => _x ( 'Oras', 'taxonomy singular name' ), | |
'search_items' => __ ( 'Cauta orase' ), | |
'all_items' => __ ( 'Toate orasele' ), | |
'parent_item' => __ ( 'Oras parinte' ), | |
'parent_item_colon' => __ ( 'Oras parinte:' ), | |
'edit_item' => __ ( 'Editeaza oras' ), | |
'update_item' => __ ( 'Actualizeaza oras' ), | |
'add_new_item' => __ ( 'Adauna oras' ), | |
'new_item_name' => __ ( 'Nume nou de oras' ), | |
'menu_name' => __ ( 'Oras' ) | |
); | |
$args = array ( | |
'hierarchical' => false, | |
'labels' => $labels, | |
'show_ui' => true, | |
'show_admin_column' => true, | |
'query_var' => true, | |
'rewrite' => array ( | |
'slug' => 'oras' | |
) | |
); | |
register_taxonomy ( 'oras', array ( | |
'post', | |
'orase', | |
'judete', | |
"alerte", | |
'locuri', | |
'spot' | |
), $args ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment