I'm running WordPress 6.0.1 and I'd like to achieve a smilingly easy thing, I have a query loop which shows posts that must be filtered by a query parameter so I can add a search box into the page.
I tried passing URL parameters like '?s=keyword_to_search_for' but it doesn't seem to be affected so I enabled the option "Inherit query from template" where the results should be affected by the global query configuration. My issue is that when that's enabled no posts are shown (while when it's disabled it shows all).
The query loop shows all my posts correctly with the pagination, I just want to put a search box above the list to be able to filter them through URL parameters.

