Hi, I want to use a custom taxonomy for "brands" and added several custom fields to the taxonomy. This taxonomy is assigned to standard posts to a custom post type "company".
Now I struggle with how to set up a template/view (?) to display a taxonomy term.
In the upper part of this taxonomy term page shall be shown: the term, a custom image to the term (here: the brand logo), several other custom fields of the term like "brand story", several social media links etc.
In the lower part of the page, I want to show first a list of five current posts and then a list of the companies that are also tagged to this term.
I tried to apply the found how-tos but I was not able to understand how to "place" and design the custom fields to the custom taxonomy term.
Btw: it is currently a bit confusing as some guides refer to the old "views" and other to the new "blocks" - and in between, I get lost...
Hello. Thank you for contacting the Toolset support.
As I understand, you want to build a taxonomy archive where on the term archive page:
- You want to display the term name and its associated custom term fields
- then list of 5 current posts, do you mean you want to display recent 5 posts irrelevant to term assigned from default post type post?
- and last you want to list the company post.
Now, when you create a taxonomy archive, it will allow you to display all posts belong to that term.
Hello. I am sorry, but unfortunately I cannot consider this request as "resolved" at all. I have exactly the same issues martinP-14 described in his request. The link offered by Minesh describes the solution with the outdated "views" way - but not with the current "blocks" way.
The problem when working with the "blocks" system is exactly the following: If you try to add taxonomy fields outside of the loop (as recommended by Minesh) the system does not offer you fields of the "Current Taxonomy Term" but of the "Current Post".
So you cannot select any of the custom fields of the given taxonomy.
This is a bug, I think. There should be no "current post" outside of the loop, because this is "current taxonomy term" area.