Title: Search fuction
Last modified: August 24, 2016

---

# Search fuction

 *  [jecn100](https://wordpress.org/support/users/jecn100/)
 * (@jecn100)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/search-fuction/)
 * Sorry new to word press coding / php
 * I have a website which has a search function in the header which searches the
   whole site however I want to add a search function in a category page which only
   searches in that category.
 * Can i use the current search function but say if in category (directory) only
   show results for that category?
 * This is what calls the current search function <?php get_search_form() ;?>
    could
   I add something in here or do I need to write a whole new search function.
 * Help much appreciated…

The topic ‘Search fuction’ is closed to new replies.

## Tags

 * [category](https://wordpress.org/support/topic-tag/category/)
 * [function](https://wordpress.org/support/topic-tag/function/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [jecn100](https://wordpress.org/support/users/jecn100/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/search-fuction/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
