Support » Fixing WordPress » Search exclusion

  • Hi guys. First post 🙂

    I have two text search forms on my page, fairly straightforward standard search – you type in something on one of them, click submit, and you get a list of posts that have the word in there.

    What I’d like to do is to search by category ONLY – and not search through the content within the title or text area of the post – for example, if I’m looking for all posts with the category ‘Hello’, and typed that into the search, it would give me all posts with the category ‘Hello’…AND any other posts that have ‘Hello’ in the title or text area.

    Is it easier to customise the searches to exclude the title and text area, or to set it to search only categories?

    Hope this makes sense!


  • The topic ‘Search exclusion’ is closed to new replies.