5um17 / wp-extended-search

Extend default search to search in selected post meta, taxonomies, post types and all authors.
https://www.secretsofgeeks.com/2014/09/wordpress-search-tags-and-categories.html
GNU General Public License v3.0
20 stars 4 forks source link

Empty search bug #17

Open xilega opened 1 year ago

xilega commented 1 year ago

When searching without a string in the input form, the results displayed are the default wordpress, this means that the plugin is useless in this situation. Is this a bug?

5um17 commented 1 year ago

Hi,

When there is no query in the input box WPES skip the processing and display the default WP results. So yes this is expected please let me know if you have any other opinion.

Thanks

chipcjc commented 1 year ago

Hi

This is actually an issue as I have setup WPES to just show posts in my search results not pages so it works fine when I search for things, but if I delete the search term and then hit return it searches for "" so then shows pages as well as posts which I don't want.

I understand that the default WP search displays everything when you search for "" but what surely should happen is it should still display everything but within the parameters set in WPES, so in my case just posts.

I am investigating generally filtering out all pages via another plugin to solve the issue but this isn't ideal.

What if I had setup a complex filter in WPES to say only search CPTs etc. I would still want just the CPTs to be displayed when searching for "", not all posts and pages.

Any ideas?

Apart from this issue your plugin is great :)

Chris

5um17 commented 1 year ago

Hi Chris,

This makes sense. Thanks for the input. I will try to fix it in code if this is not possible I will provide a filter. This could take time please bear with me. :)

Thanks

Usamaashraff commented 7 months ago

Hello, I'm facing the issue that the default search result appears when the search is not found. image