• icetek

    (@icetek)


    I want to add a field for Search in Category within searchform.php. A select option box. The select is id=w. So the URL flag would be https://example.com/?s=somekeywords&w=myOption. How do I do this? I’m aware I have to work with MySQL too. Given that a search of the WordPress source code literally turns up $_POST and $_GET 100 times I am confused as to what is the proper method of doing this.

    Thank you.

Viewing 1 replies (of 1 total)
  • Thread Starter icetek

    (@icetek)

    I solved it, it was really easy. Just make your option dropdown named ‘cat’ for the ‘cat’ in the URL and put your category ID’s in the option value=” tag.

Viewing 1 replies (of 1 total)
  • The topic ‘….. How do I make a custom search input and MySQL query.’ is closed to new replies.