Search facility with directories

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:

  1. Write out complete structure and work on it until it’s completely unambiguous.
  2. Use Rewrite API to implement each rule you end up with.

error code: 523