Skip Navigation

[Resolved] additional search filters only in search results view

This support ticket is created 6 years 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 11 replies, has 2 voices.

Last updated by Minesh 6 years ago.

Assisted by: Minesh.

Author
Posts
#1192520

Tell us what you are trying to do? i have a single search field but when the results are shown in the table layout i want more search filters to be present

Is there any documentation that you are following? none

Is there a similar example that we can see? not any i know of

What is the link to your site? elastikagiannoulis.gr

#1192534

when i add the search filters, they are shown also in the first search field.

i just want this single search hidden link

but when the search results are shown i need more shorting or search fields to be shown in the table or above the table

like short by category by attribute manufactorer etc

hidden link

is it possible to add search fields or criteria like short or show per product categories dispite the table fields dont have product categories but only products from all categories?
thank you

#1192550

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Do you mean that you want those additional drop-down filter with your view?

#1192556

yes but only in the search results output

hidden link

at first on the homepage elastikagiannoulis.gr the visitor will search only per code hidden link

but when he lands on the table search results i want more sorting or search options for the results shown but also if possible to have a shor tor search field like select category, to show for example only products of a specific category

#1192592

Minesh
Supporter

Languages: English (English )

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

I need to check how you configure your view.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).

I have set the next reply to private which means only you and I have access to it.

#1192603

it is the same as the other ticket you are supporting me

#1193034

dear Minesh can you use the login and fpt data i have already sent with a previous ticket?

#1193093

Minesh
Supporter

Languages: English (English )

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

Well - to display the filters conditionally I've added the following conditional shortcode within your view's search and pagination section:

[wpv-conditional if="( NOT(EMPTY([wpv-search-term param='wpv_post_search'])) )"]
 
 <div class="form-group">
    <label>[wpml-string context="wpv-views"]Product ΚΑΤΑΣΚΕΥΑΣΤΗΣ[/wpml-string]</label>
    [wpv-control-post-taxonomy taxonomy="pa_manufacturer" type="select" url_param="wpv-pa_manufacturer"]
</div>
 
 [/wpv-conditional]

As you can see I've added the "pa_manufacturer" filter, you can add as many filters as required within the conditional shortcode.

More info:
=> https://toolset.com/documentation/user-guides/conditional-html-output-in-views/

#1193168

My issue is resolved now. Thank you!

#1193392

dear Minesh im sorry to reopen this ticket but after hours of reading documentation and making tests i would like to ask for your help once again.

im trying to make a filter of selected product categories hidden link

it is showing all of them but i only want to show specific categories in this dropdown

i have tried to set in the query filter the selected categories but i think im missing out on the filter created in the search and pagination field.

would you be so kind to look into it.

thank you

#1193398

one thing i noticed is that in the live site there is not the query filter beneath the ordering as it is in the stage website

hidden link

New threads created by Minesh and linked to this one are listed below:

https://toolset.com/forums/topic/split-additional-search-filters-only-in-search-results-view/

#1193545

Minesh
Supporter

Languages: English (English )

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

Well - will you mind to open a new ticket with your every new question. This will help other users searching on the forum as well as help us to write correct resolution summary for the original issue for which the ticket belongs to.