Skip Navigation

[Resolved] Create view for custom search on categories/subcategories

This support ticket is created 6 years, 4 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 8 replies, has 2 voices.

Last updated by Christian Cox 6 years, 4 months ago.

Assisted by: Christian Cox.

Author
Posts
#952830

as previous function was not working properly i have switched to new custom search module.
I have created 3 categories and couple of sub categories for my post type Home and land packages.
I want to set up manual custom fields. so that they can fetch record from db

can some 1 please guide me how to do that
I know basic process but its not working as it should be

Its showing list like this
hidden link

Is it possible to attach a custom field with the cateogry like

I want a manual defined radio button with 4 options and want to associate that with 1 of the category /subcategory

#952831

link to my page is
hidden link

#952838

the categories i created are
hidden link

i used
hidden link

i dont seems to find list of the categories i created
hidden link

#953128

i manged to reach this far.

hidden link

its showing categories but all in 1 list
parent + child
can u please guide how can i be able to show child categories under heading of each parent ? or if i can define these manually and can associate to specific subcategory for matching?

still i am trying to figure out how to display results
any help will be appricated

#953146

I want to set up manual custom fields. so that they can fetch record from db
There is no way to create custom filters in Toolset that fetch options from the database. Custom search filter options must be manually predefined in wp-admin, like a select field or a radio field. Or, you can use a taxonomy filter with the default term options from all levels of the taxonomy hierarchy.

its showing categories but all in 1 list...can u please guide how can i be able to show child categories under heading of each parent ?
There is not much customization available for these taxonomy search filters. You are limited to the default options, like checkboxes and select fields. What you're asking for would require custom code.

#953152

Thanks you very much for a quick response

can you please guide

hidden link

this my current search thing( though i am not able to show results)
How can i transform it like
heading ( [parent category ] filter 1
sub heading 1
sub heading 2
sub heading 3

heading ( [parent category ] filter 2
sub heading 1
sub heading 2
sub heading 3

heading ( [parent category ] filter 3
sub heading 1
sub heading 2
sub heading 3

can u give me an example how to do custom coding to achieve this ??
i want to set 3 columns and

#953204

Yes, I understand you want to organize the taxonomy filters by hierarchy but it's not possible in the current software. You are limited to the default options, like checkboxes and select fields, and the default layout. Customizing the filters like this will require custom code, which falls outside the scope of support we provide here in the forums.

#953240

wont you be able to refer me to an example how that suppose to be done?
ill be able to carry it forward.?

#953649

I am not able to provide an example to help achieve this. We do not provide this type of custom code here in the forums. It's not supported, because there is no public JavaScript API available for search filters. I can show you how to use the wpv_filter_query API to modify the query filters applied in PHP, but I can't show you how to manipulate the filters on the front-end.