Title: Querystring Arguments
Last modified: August 30, 2016

---

# Querystring Arguments

 *  Resolved [jlbland](https://wordpress.org/support/users/jlbland/)
 * (@jlbland)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/querystring-arguments/)
 * Hi,
 * I’ve built a form and am trying to pass the field information for keywords, location,
   and category. Keywords and Location are working fine, but I can’t get the category
   syntax. Can you please help? I’m using the variable search_category.
 * Here’s my string: search_keywords={:4}&search_location={:2}&search_category={:
   3}
 * FYI, I tried to use the code in the custom search page documentation, but could
   not get that to work.
 * Much appreciated.
 * [https://wordpress.org/plugins/wp-job-manager/](https://wordpress.org/plugins/wp-job-manager/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Contributor [Adam Heckler](https://wordpress.org/support/users/adamkheckler/)
 * (@adamkheckler)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/querystring-arguments/#post-6563095)
 * According to this page:
 * [http://wpjobmanager.com/document/tutorial-creating-custom-job-search-form/](http://wpjobmanager.com/document/tutorial-creating-custom-job-search-form/)
 * … the search page only picks up `search_location` and `search_keywords`.
 * Since this involves custom code, I can’t really help much more with this unfortunately.
 *  Thread Starter [jlbland](https://wordpress.org/support/users/jlbland/)
 * (@jlbland)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/querystring-arguments/#post-6563121)
 * Thanks. It may be worthwhile to update the code you’ve supplied on the page you’ve
   referenced which implies that Category is an option for the querystring – if 
   it’s not viable to use on a custom search form.
 *  Plugin Contributor [Adam Heckler](https://wordpress.org/support/users/adamkheckler/)
 * (@adamkheckler)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/querystring-arguments/#post-6563138)
 * Ack, so sorry! I made a mistake! 🙁 You were right.
 * You can use a URL like this:
 * [http://yourdomain.com/jobs/?search_category=44](http://yourdomain.com/jobs/?search_category=44)
 * … where `44` is obviously the category ID.
 *  Thread Starter [jlbland](https://wordpress.org/support/users/jlbland/)
 * (@jlbland)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/querystring-arguments/#post-6563187)
 * Sorry. Just getting back to this issue. Much appreciation for the updated response.
   Now my challenge is finding the category ID. The Job Category details do not 
   provide the category ID. Where do I look to find this?
 *  Plugin Contributor [Adam Heckler](https://wordpress.org/support/users/adamkheckler/)
 * (@adamkheckler)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/querystring-arguments/#post-6563194)
 * I believe you’d want to use the “get_term_by” function to do this:
 * [https://codex.wordpress.org/Function_Reference/get_term_by](https://codex.wordpress.org/Function_Reference/get_term_by)
 * Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Querystring Arguments’ is closed to new replies.

 * ![](https://ps.w.org/wp-job-manager/assets/icon-256x256.gif?rev=2975257)
 * [WP Job Manager](https://wordpress.org/plugins/wp-job-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-job-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-job-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-job-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-job-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-job-manager/reviews/)

## Tags

 * [Query String](https://wordpress.org/support/topic-tag/query-string/)
 * [search-page](https://wordpress.org/support/topic-tag/search-page/)
 * [url](https://wordpress.org/support/topic-tag/url/)

 * 5 replies
 * 2 participants
 * Last reply from: [Adam Heckler](https://wordpress.org/support/users/adamkheckler/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/querystring-arguments/#post-6563194)
 * Status: resolved