Hi Luo
I was able to create one of the views and now I can just duplicate the process. The next thing is how to order the taxonomy terms other than name or date.
In one example I have a members taxonomy of positions like President, Vice President, Treasurer, etc... How can I organize the taxonomy terms in a custom order and then display them?
Hello,
I assume we are talking about the left part of below page, under text "Unifor87-M":
hidden link
If it is, it is possible with a taxonomy view, for example:
1) Enable legacy editor:
https://toolset.com/course-lesson/enabling-legacy-version-of-toolset-views/
2) Dashboard-> Toolset-> Views, create a new taxonomy view:
- Query terms of your custom taxonomy
- Order the results by:
a) Term name
b) Term Slug
c) Term group
d) Post count
...
- In view's loop, display term information
I was referring to the right side where the Executive are organized by position ( a Taxonomy)
Unit Chair, Vice Chair,Secretary and Membership Secretary. The same for the row below that of Steward are all ordered by the Stewards Taxonomy. In Drupal I was able to specify the exact order.
None of the 4 order methods a,b,c.d would work as the order has to be completely custom.
Is there are way to place all the slugs or ids in the order I want them displayed?
I tried using a plugin to organize the taxonomy where you can drag the terms to the order you want want but views does not recognize the order.
Unfortunately, Toolset taxonomy view does not support third party plugin custom orderby settings.
You might consider custom codes, for example:
1) Add a custom taxonomy field into your custom taxonomy
2) Use filter hook wpv_filter_taxonomy_query to trigger a PHP function
3) In this PHP function, sort the taxonomy view results by above taxonomy field of step 1)
More help:
https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_taxonomy_query
https://developer.wordpress.org/reference/classes/wp_term_query/__construct/
Thanks Luo
It looks like this will work.
Please update here if you need more assistance for it. thanks