Skip Navigation

[Resolved] “Generic” query filter

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the user's default site search is being restricted to a single post type.

Solution:

Unfortunately this is not an issue that our Toolset plugins can caused and I would recommend disabling any plugin that can modify your archives to ensure its not a conflict.

This support ticket is created 6 years, 2 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by ELAN42 6 years, 2 months ago.

Assisted by: Shane.

Author
Posts
#1142050

Hello,
Within the "Search and Pagination" section of an ArchiveI have this code:

<label>[wpml-string context="wpv-views"]Cerca[/wpml-string]</label>
[wpv-filter-search-box output="bootstrap"]

The associated query filter looks into the title and contents of "post" post types, that means:
hidden link

My question is: how can I have a generic query filter? Something like this:
hidden link

Thank you!

#1142480

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Thank you for contacting our support forum.

You mean you want a search that will search through all CPT ? instead of the one that is defined by your view ?

Please let me know.

Thanks,
Shane

#1142983

Yes, exactly.

#1143037

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Elan,

If this is a view then you can just select all the CPT that you want to be included in the search.

Also you can do a general search by using your default theme search when you install the relevanssi plugin.

Please let me know if this helps.
Thanks,
Shane

#1144893

Hello Shane,
Sorry: after further discussion with my fellow developer, I understand now I was mistaken on the kind of problem we have. So please ignore the previous messages. The fact is this:

It looks like our theme (NewsTube) default search functionality is being overwritten by one of the custom search filter that we have defined within Toolset WP Archives. So, when using the theme search input control, instead of the default hidden link we now have hidden link

Are you aware of previous cases of Toolset search filters interfering with the theme's search functionality and how to solve it? Thank you.

#1145141

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

The only way our Toolset plugins will affect the search archive is if you create a custom archive for it.

Do you currently have a custom archive ?

Thanks,
Shane

#1145153

Solved on our own, but thank you very much for your time!