Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty search bug #17

Open
xilega opened this issue Jan 12, 2023 · 4 comments
Open

Empty search bug #17

xilega opened this issue Jan 12, 2023 · 4 comments
Labels
question Further information is requested

Comments

@xilega
Copy link

xilega commented Jan 12, 2023

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
Copy link
Owner

5um17 commented Feb 5, 2023

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

@5um17 5um17 added the question Further information is requested label Feb 5, 2023
@chipcjc
Copy link

chipcjc commented Jun 7, 2023

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
Copy link
Owner

5um17 commented Jul 2, 2023

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants