Skip Navigation

[Resolved] Select box parametric search

This support ticket is created 8 years, 1 month 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.

Our next available supporter will start replying to tickets in about 4.88 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 3 replies, has 2 voices.

Last updated by Beda 8 years, 1 month ago.

Assigned support staff: Beda.


Hi there,

I have a custom post type setup for yoga classes. These "Classes" belong to areas of the UK.

I first need to organise these in to "Counties" and then "Towns" (within counties) - a town will only ever have 1 class. How would I organise this? Would I add a select item to the Types Group or would I use Taxonomies?

With this in mind, I also want to setup a paramtric search which has 2 select boxes, one where the user can select "County", which would then update the other select box with "Towns" within that county - without the page having to refresh.

Could you point me in the right direction for getting this setup?

Many thanks


Thank you for contacting us here in the Support Forum

I would build this as follows
(different approaches, you may need to look for what fits your needs best)

Approach 1 (most suggested):

1. Create Custom Post Type "Counties"
- Set it to be hierarchical
2. Create Custom Post Type "Towns"
- Set it hierarchical to, with parent "Counties"
3. Create Custom Post Type "Classes"
- set it hierarchical, with parent "Towns" (child of "Towns)
4. You can now head to your Custom Post Type "Towns",
- set up your first Post in it (Lets say "Edinburgh")
- Save it, and at the bottom, after having saved you can choose to create a Child and add a Parent for it (which would be the Child-Class, and the Parent-County)

Approach 2:

1. Create a Custom Post Type "classes"
2. Create a Hierarchical Custom Taxonomy "Counties".
3. Create Taxonomies (Counties) and then add (In the same taxonomy) Taxonomies with parent-County (choose the appropriate county for your towns)
4. When creating your Classes, attach the correct Taxonomies+Child Taxonomies
(if you choose this approach, you can't filter by Counties and Towns, but you will filter by cities, which will return a certain county with all sub-taxonomies-towns belonging to)

Approach 3:

1. Create Custom Select Fields, one for Towns, one for Counties
2. Assign the Custom Field Group to the Custom Type "Classes"
3. When creating your classes, add the proper information form the Drop down (counties and towns)

The Parametric Search:

1. Set up a View, with following parametric search settings:
- AJAX results update when visitors change any filter values
2. Include a Filter in the Filter Editor Section, where you filter by Custom Post/Taxonomy/Field (depends what you chose from previous steps)
3. Style the Loop Output and Template as per your needs
4. Include this view wherever you need/want to in your website.

the view hasn't to cover all content, you can create different, even nested views.
This way you can, also using Content Templates or even Layouts, fully customize the look, feel and behavior of your website.

Please let me know if you have further questions regarding the issue mentioned in this Thread
and let me know if the above solution works for you, I look forward to your reply!

Thank you


Great! Many thanks for your lengthy reply - I really appreciate you effort. I will give it a go and if I get stuck I'll post to this thread if ok?

Many thanks again,



This thread is marked as resolved, therefore I won't be notified when you reply to it.

But, in case you need more assistance, you can just open anew ticket.

You will be able to choose which supporter should assist your Thread, and if you like, you can select my Name there, since I already know the issue you're mentioning.

However, you may also choose "Any Supporter can reply".

Thank you for choosing Toolset