Skip to main content
Pasted my code, what I get and explained in detail what I need. Changed the title.
Link

How to properly exhibit Getting all custom post taxonomies and exhibiting only part of them

added 1005 characters in body
Source Link

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.

What'sI got all the best way topost taxonomies, but I need to that?'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:

  1. I need to exclude some of those taxonomys (Categorias, Tipos de acessórios, Modelos de Acessórios, Marcas de Acessórios & Extras)
  2. 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.

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.

What's the best way to to that?

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:

  1. I need to exclude some of those taxonomys (Categorias, Tipos de acessórios, Modelos de Acessórios, Marcas de Acessórios & Extras)
  2. 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.
Source Link

How to properly exhibit all custom post taxonomies

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.

What's the best way to to that?