I cant get this figured out?? I need my search box to create a specific url when submitted. How would I edit the code below so a search for 'steve jones' returns this URL: http://blogname.com/ticket-tag/steve-jones/ HTML Code: <form role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>"> <div><label class="screen-reader-text" for="s">Search for:</label> <input type="text" value="" name="s" id="s" /> <input type="submit" id="searchsubmit" value="Search" /> </div> </form>
Search box code problem
5
I cant get this figured out?? I need my search box to create a specific url when submitted. How would I edit the code below so a search for 'steve jones' returns this URL: http://blogname.com/ticket-tag/steve-jones/
HTML Code:
<form role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>"> <div><label class="screen-reader-text" for="s">Search for:</label> <input type="text" value="" name="s" id="s" /> <input type="submit" id="searchsubmit" value="Search" /> </div> </form>
- dudeontheweb
- Harrison_Uhl
- Mike Adams
- Jake Gray
Next Topics on Trending Feed
-
5