I'm trying to do an advanced search for a particular site. I have already created and the form is functional, which would be something like this:
The idea is that the "title" field look only in the post_title, which is the title of the product. The "Author" field has to look only at the value of the "author" attribute of the product. And so the rest of the fields.
I did some tests with the action 'pre_get_posts' but without interesting achievements.
In the form one of the fields I always call 's' to use the search because in the function I use if($query->is_search) {
I could not find an example that could give me a guide on how to resolve this point, if anyone can give me an idea I will be grateful.