I have a website that I made a custom search on it… I want to only show products instead of post and anything I just want a products data and meta only. I achieve that but the only issue is the user searches in the backend…
When a user search in the website it fires up “/?s=KEYWORD&post_type=product”
That’s fine and cool however when I go to the backend of the site and go to user searches which is the logs of end users who search in the website…. and click some of the keywords there it fires up this “/?s=KEYWORD” only.
I want to achieve that when I click any keyword in the user searches it must fires “/?s=KEYWORD&post_type=product” to make it consistent. How I can achieve that?
- The topic ‘Custom Parameter in User Searches’ is closed to new replies.