Results 1 to 2 of 2

Thread: Can't search specific category

  1. #1
    Thread Starter
    Rookie
    Not a Verified Customer
    rdbarahona's Avatar
    Join Date
    May 2009
    Location
    San Francisco, CA
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Can't search specific category

    My site will have 2 primary categories and I'd like to have separate search forms for each. I've tried modifying the search form to add a specific category by adding the following where "###" is the category ID I'm interested in.:

    <input type="hidden" name="cat" value="###" />

    However, this seems to have zero effect on the search results. It returns all the search matches regardless of which category it's in.

    To prove my results I confirmed that both of these queries produces exactly the same results:
    Code:
    http://www.mydomain.com/?s=honda
    http://www.mydomain.com/?s=honda&cat=autos
    Has anyone else run into this?

  2. #2
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: Can't search specific category

    I don't believe you can just add a parameter to limit the category you are searching. Have you seen this work for other WordPress sites?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Category Specific Custom Fields
    By sarge in forum ClassiPress General Discussion
    Replies: 1
    Last Post: January 16th, 2010, 06:16 PM