title: Create custom wordpress url to query data from external database
body: <p>so, I have a Wordpress Setup with a custom homepage template. In the template I query some products from an external database. Now I want to create a detail of a product, and this is where im stuck..</p>
  
  <p>I don't know how to implement this since there is no data in the WP db thus no actual url (I guess?).. I thought about making 1 page in WP called 'Detail' and make the href attribute on the homepage products like this 'www.example.com/detail/123', get the id from the url en with that id query to the database..</p>
  
  <p>Is this the right approach? Hope someone can help..</p>
  
  <p>thanks!</p>