I have a custom post type, that has several taxonomies.
For each one, I need to show something like:
Taxonomy name: Taxonomy value
So, since I have posts that have the following taxonomy tree:
Categories -> Bikes
Bikes Models -> Model 1
Bikes Brands -> Brand 1
Genre -> Male
I need to show all of them with the respective name and value.
I got all the post taxonomies, but I need to 'delete' part of it.
This is my code:
$args = array(
'post' => $post->ID,
'before' => '<p class="meta">',
'sep' => ' ',
'after' => '<p class="meta">',
'template' => '%s %l<br/>',
);
That produces:
- Categorias | Acessório
- Tipos de Acessórios | Tipos de Acessórios 2
- Modelos de Acessórios | Modelos de Acessórios 3
- Marcas de Acessórios | Marca de Acessório 3
- Tamanhos | XL
- Gênero | Masculino
- Material Quadro | Carbono
- Extras | Com garantia, Como novo, Dobrável, Dupla-Suspensão, Excelente estado, Exclui pedais, Exclui pneus, Exclui rodas, Pouco uso, Preço negociável, Sem selim e Tem amortecedor trás
The thing is:
- I need to exclude some of those taxonomys (Categorias, Tipos de acessórios, Modelos de Acessórios, Marcas de Acessórios & Extras)
- The ones I need to show, will ALWAYS BE DIFFERENT on each item. But the ones I need to exclude/hide WILL ALWAYS BE THE SAME.