First what you are making doesn’t quite sound like a search to me. I think the more apt term for such kind of filtering is faceting.
Second, you probably are firmly in the need to write custom rewrite rules for this, Rewrite API and everything.
I think the main hold up is that your structure isn’t completely unambiguous. If I follow it right you are planning for:
/jobs/[job]
/jobs/[sector]/
/jobs/[sector]/in-[location]/
- and I would guess few more, like just location?
The issue is WP cannot outright guess if arbitrary string in URL is a job
or sector
. It relies on structure of the rule, that’s why those native URLs are like /category/[category]/
, explicit level makes it clear which taxonomy it is.
So your next steps are:
- Write out complete structure and work on it until it’s completely unambiguous.
- Use Rewrite API to implement each rule you end up with.
Related Posts:
- Extending the search context in the admin list post screen
- Advanced search form with filters for custom taxonomies and custom fields
- How can I change the admin search posts fields?
- Development of a WordPress Search Plugin – Best Practices
- Admin Area Custom Type Search By Meta Fields Without Title & Content
- Search multiple custom fields by using meta_query
- How do I Paginate Search Results for Custom Post Types?
- Search that will look in custom field, post title and post content
- Search everything (posts, pages, tags, cpt, meta)
- Search Custom Post Type with all meta attached?
- WordPress Search documentation: how to improve search query using taxonomy terms, custom meta fields?
- Backend search; include CPT meta?
- Search Custom Post Type Custom Fields
- Custom Fields vs Separate Table
- Including Custom Meta with posts_where query
- search also in taxonomy, tags and custom fields
- How to stick custom post at the top in search results
- Filter custom posts using auto populated dropdown selectors
- Including metaboxes from custom post types in global search — continued
- Displaying and searching Custom Posts
- Searching Custom Fields
- filter search custom field query
- How to let users choose where to search for posts?
- Add custom attributes to a post
- Custom Taxonomy Search result page
- search custom post type by custom fields on front end
- Category Search / Custom Post Type search on my website. Custom Post Types that are “page-like”?
- Best way to create a search for custom post type by custom field values
- Filtering custom posts by custom fields (ACF) [closed]
- Search CPT Title AND Meta
- Advanced search form with multiple custom fields
- Search form to find custom meta box generated data
- Is it good practice to search for custom posts based on custom field values?
- Advanced search form with filters for custom taxonomies and custom fields
- Using Custom Fields in Custom Post Type URL
- Query custom post type by custom field
- Filter a custom field based on selection of another custom field (ACF) [closed]
- How to get custom metabox image field?
- Using custom field as custom post title
- filter search result with custom post type meta key
- Custom field being erased after autosave
- Get post info inside modal window?
- Add Taxonomy Values Within a Custom Post Type RSS Feed
- delete custom post based on custom field date
- Get_post_meta() won’t return value
- Having trouble with custom date field for CPT query (WordPress)
- How to retrieve custom field types for all posts in WordPress/PHP?
- Display posts if a custom field value is equal to another custom field value
- multiple search forms and search results
- wp parse_query not working with custom meta value
- How to use custom fields to enable sticky posts on custom post types?
- Custom meta fields for specific custom type only
- How to insert content from another Custom Post type into Post?
- Using several custom fields as custom post title
- Copy custom field value to post title
- Custom Post Type + 20k posts = blank/404 within Admin edit.php [duplicate]
- Display custom fields on post excerpt or teaser
- WP_Query orderby modified to include custom meta changes
- How to bulk copy custom fields between custom posts?
- Get image post ID in media upload
- Multiple meta_values in the pre_get_posts filter?
- How to order separated Custom Post Search results
- Having unique constraints for custom fields in a custom post type
- Rows with custom columns not well formatted after Quick Edit save
- What to and how to proceed with CPT to make DB small and efficient?
- Auto Complete Search
- Remotely search WordPress sites using xml-rpc
- Different results between permalink and query var search
- WordPress Custom Search by post_type
- Send a conditional email notification when a custom field value changes in Post Type
- Display post from a date range from custom field
- List of users that clicked a ‘Join’ button at single post
- Targeting categories in custom fields
- Custom taxonomies to define versions of a product
- Getting a custom post’s custom field based on another custom post’s custom field select
- Inserting custom fields into single.php
- Proceed to the next video of the custom post type but remain on the same post
- Change WordPress custom field default calendar [closed]
- How to show custom field on specific custom post type posts only when filled
- Blank search results on custom search
- Need help with simple “if statement” checks to output particlular CPT data depending on what client uploads/fills out
- How can I sort the order of multiple custom field values in a custom post type?
- Checking for custom field in admin pages
- Create if else for post types in WP_Query ‘post__in’ values
- How to avoid duplicate posts queried from custom meta?
- How do I query with multiple custom fields orderby in same column?
- How to link custom field of two custom post types?
- Simple Data picker meta box
- How to properly set a value to meta fields of a custom post type in WP-API/node-wpapi REST API?
- Generate slug and meta data if meta field is empty
- Extensive search filtering and results->PDF in the front-end
- one get_posts to return a number of custom posts for each meta value
- WP_Query get posts where post_name is empty
- Querying meta values within an array
- Creating entries with image attachements within posts and managing them in a list
- How to Create a Frontend Html-list Editable in the Backend?
- Searching for a single custom post type, buddypress
- How to grab data (titles, thumbnails and custom fields) from multiple posts to populate a new array efficiently?
- How do I do this?: If custom post type exists, echo it, else do not
- Custom Sort Order for Custom Post Type Taxonomy