Skip to content

Instantly share code, notes, and snippets.

@Dexterstat
Created June 12, 2014 08:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dexterstat/2ae9836c6989b1645cce to your computer and use it in GitHub Desktop.
Save Dexterstat/2ae9836c6989b1645cce to your computer and use it in GitHub Desktop.
new taxonomy wordpresss
$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