I want to find a solution for the following problem:
On my website, I want to show a specific content on a certain page, e.g.: http://mysite.de/locations/location-xyz
locations is wordpress page location-xyz is a special location and should be replaceable with any other location (location-abc, location-sdf, uvw-location -> the exact slug of a location).
But I don't want do create a site for every single location. I've created a template file for the locations page and on this page I want to display information about the given location. If no location is given, I want to show the content of the locations page.
It is clear to me, that I could easy access the location wirth the following solution: http://mysite.de/locations/?location=location-xyz. But that's not the way I want to do it.
The problem is, that Wordpress automticlly tries to find the page "location-xyz".
Is there any possiblity to access the url-parameters?
Thanks!
locations, withlocations-xyz,locations-abcetc being categories?