Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // categorias interaja
- $labels = array(
- 'name' => _x( 'Categorias', 'interajas' ),
- 'singular_name' => _x( 'Categoria', 'interajas' ),
- 'search_items' => __( 'Buscar' ),
- 'all_items' => __( 'Todos' ),
- 'edit_item' => __( 'Editar' ),
- 'update_item' => __( 'Atualizar' ),
- 'add_new_item' => __( 'Adicionar uma nova categoria' ),
- 'new_item_name' => __( 'Nova Categoria' ),
- 'menu_name' => __( 'Categorias' ),
- );
- register_taxonomy('categoria-interaja','interaja', array(
- 'hierarchical' => true,
- 'labels' => $labels,
- 'show_ui' => true,
- 'query_var' => true,
- 'rewrite' => array( 'slug' => 'categoria-interaja' ),
- ));
- // uso assim no taxonomy-categoria-interaja.php
- <?php if(have_posts()) { $x = 0; while (have_posts()) { the_post(); $x++;
- the_title(); } }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement