Category search issue (1 post)

  1. kylepacker
    Posted 3 years ago #

    Hi guys.

    Currently searching by category on a page using this code:

    <form id="searchtest2" role="search" action="http://mysite.co.uk" 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.


Topic Closed

This topic has been closed to new replies.

About this Topic