Specify product as the post type in search query

Hi, I have created a custom header in PRO with a search in-line element, when used from the front end the search query is simply “?s=” - is there a way to specify "&post_type=“product” in the standard query string?

Hi Jonathan,

Unfortunately, that is not possible to add an additional parameter to the Search Element. But you can modify the Search Query through the code, I would suggest you go through the following thread which may help you on this.


Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.