Created
September 17, 2014 12:11
-
-
Save gmmcal/55ec6b89c50bd99d257c to your computer and use it in GitHub Desktop.
Criando um plugin para Wordpress usando Custom Post Types - Tutorial 5
This file contains hidden or 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
register_taxonomy( | |
"categorias", | |
array("demonstracao"), | |
array( | |
"public" => true, | |
"show_in_nav_menus" => true, | |
"show_ui" => true, | |
"show_tagcloud" => false, | |
"hierarchical" => true, | |
"label" => "Categorias", | |
"singular_label" => "Categoria", | |
"query_var" => "categorias", | |
"rewrite" => array( | |
"slug" => "categorias", | |
"with_front" => true, | |
"hierarchical" => true | |
) | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment