Title: Search Field Code
Last modified: August 20, 2016

---

# Search Field Code

 *  [allanfish](https://wordpress.org/support/users/allanfish/)
 * (@allanfish)
 * [13 years ago](https://wordpress.org/support/topic/search-field-code-help/)
 * My WP page is connected to an ecommerce site and I have a small piece of code
   to append to the search query code. I need to add to all searches the following:
   ?
   Staging=True
 * See below for my current search code. Currently, it is not acknowledging the “?
   Staging=True”. (I tried substituting & and / for the “?”, but no success. I use
   this on all my links and it works fine. Just having this issue in Search queries.
   Current code:
 * <form action=”[http://store.xxx.com/categories.aspx?Staging=True&#8221](http://store.xxx.com/categories.aspx?Staging=True&#8221);
   method=”get” id=”searchForm”>
 * <script src=”[http://www.nexternal.com/net/StoreFront/JavaScript/AutoComplete.js?cn=tedu&searchType=keyword?Staging=True”></script&gt](http://www.nexternal.com/net/StoreFront/JavaScript/AutoComplete.js?cn=tedu&searchType=keyword?Staging=True”></script&gt);
 * Thanks!!

The topic ‘Search Field Code’ is closed to new replies.

## Tags

 * [search field](https://wordpress.org/support/topic-tag/search-field/)
 * [search query](https://wordpress.org/support/topic-tag/search-query/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [allanfish](https://wordpress.org/support/users/allanfish/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/search-field-code-help/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
