• Hi guys.

    Currently searching by category on a page using this code:

    <form id=”searchtest2″ role=”search” action=”https://mysite.co.uk&#8221; method=”get”><label class=”screen-reader-text” for=”search2″>’ . __(‘Search for:’) . ‘</label><input id=”search2″ type=”text” name=”category_name” value=”Author” /><input type=”hidden” name=”cat” value=”28″ /><input id=”searchsubmit” type=”submit” value=”Search” /></form>

    Yet searches with spaces in return nothing.

    I know this is an issue with category search, within this code can I enter anything that replaces a space with a ‘+’ so they display in search?

    If not, I don’t really know how to make the category search work (very little php knowledge, I’m afraid!)

    any help would be amazing.

    Thanks

  • The topic ‘Category search issue’ is closed to new replies.