Skip Navigation

[Resolved] a-z filter glossary

This support ticket is created 5 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 5 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#1200214

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

#1200311

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.

#1200466

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?

#1200782
alphabet.JPG

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