Hi,
I'm trying to create an A-Z filter glossary for a specific custom post type (e.g. "countries") using types and views.
I have added the alphabet taxonomies to each custom post type entry based on their first letter (e.g. "F" for "France", "C" for "Canada", etc etc), in preparation. However I'm not sure where to go from there.
Can you help?
Thanks
Hello,
If you need to setup a search form with taxonomy filters(A-Z filter glossary), please check our document:
https://toolset.com/documentation/user-guides/front-page-filters/
And here is a document about taxonomy filter:
https://toolset.com/documentation/user-guides/filtering-views-by-taxonomy/
For your reference.
Hello,
Unfortunately I don't think that explains how to create an alphabet filter, where by each alphabet letter displays all the relevant terms from that post type.
So:
A B C D E F G (etc)
When clicking on "B" for example, all the "B" countries display (Bulgaria, Bolivia, Belgium, etc)
Any ideas?
I assume we are talking about this:
- Custom post type "countries", with posts:
- Custom taxonomy "alphabet"
See below test site:
hidden link
username/password: xgren/111111
in above page, you can search the country posts by taxonomy "alphabet"
You can get the view's setting here:
hidden link
1) in section "Query Filter", use below filter:
Select posts with taxonomy:
alphabets slug in one of those set by the URL parameter wpv-alphabet
eg. hidden link
2) in section "Search and Pagination", use below codes:
...
[wpv-control-post-taxonomy taxonomy="alphabet" type="select" url_param="wpv-alphabet"]
...
See screenshot: alphabet.jpg