Skip Navigation

[Resolved] Custom Filter a Taxonomy View

This support ticket is created 5 years, 11 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 5 years, 11 months ago.

Assisted by: Minesh.

Author
Posts
#1166108

I have a Site that has a Custom Post Type... DISTRIBUTORS

These DISTRIBUTORS are located all over the United States.

I decided to organize them by State... so I created a Taxonomy called STATES.

For each DISTRIBUTOR I assigned them to the proper STATE taxonomy ( sometimes a DISTRIBUTOR got assigned to several STATES).

I wanted to create a VIEW that displayed each STATE... and then under each STATE it displayed each DISTRIBUTOR. Like this....

ALABAMA
DISTRIBUTOR 1
DISTRIBUTOR 6
ALASKA
DISTRIBUTOR 13
DISTRIBUTOR 23
...
etc

I was able to create the View(s) without any issue and it looked great.

Then I simply wanted to place an AJAX powered SELECT field at the top of the page that would allow the user to select a particular STATE from the dropdown and that only that STATE would appear (using AJAX).. with all of its corresponding DISTRIBUTORS.

Much to my surprise, you do not allow custom searches for a Taxonomy View.

How do I accomplish this?

I was able to do a workaround by creating the STATES as a CPT and using a Parent-Child Relationship... and you can see the result here.. hidden link but I would really prefer to use Taxonomies for the states. That way a DISTRIBUTOR can be assigned to several different STATES. How is this possible?

#1166202

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I understand your requirement but as you already know custom search is supported only on post view. You want to group by your posts by states which you already did it but its not possible to add the filter to taxonomy view. You can say this is a limitation.

You chose another way to achieve your goal by setting up State as post type and using post relationship. That's the only solution available for now. I suggest you should go with that.