I'm working on a site about jobs in different cities. For each city, there are several types of job. I've listed each city as a parent category and each job as a child category. The job descriptions are exactly the same for each city. Something like:
New York
- dentistsNY (description: "Dentists")
- floristsLA (description: "Florists")
Los Angeles
- dentistsLA (description: "Dentists")
- floristsLA (description: "Florists")
For navigation, you can choose a city from a dropdown list and the child categories (jobs) for that city are listed by description, so the navigation looks the same on every page even though the links are different.
Now I want to display special header images across every job type page, like this:
if child category description = Florists
then display florists.jpg
If child category description = Dentists
then display dentists.jpg
So in this example, all Florists child categories of each city would show the same image header.
The Codex lists conditional options for slugs and names, but that won't work here because those have to be unique. Or can you use slugs based on their containing a specific word as part of the full slug?
Alternatively, is there another way to group child categories independently of their parent categories so that each group could display certain images, widgets, etc?
Ultimately this site will have many categories, so I don't want to have to specify them by number each time I add more.
Any help would be appreciated!