I'm writing a plugin to display products (my first plugin). I have a 10.000 product database with ids, names, images, description. I can display all of them from a page template/dummy page. How can I make every product have its own page where description and other attributes are listed? Similar manner as choosing a post from a list of posts, but for individual products?
EDIT: I just made:
if(isset($_GET['product'])){
include('includes/product.php');
}
if(isset($_GET['category'])){
include('includes/category.php');
}
if(!isset($_GET['category']) && !isset($_GET['product'])){
include('includes/catalog.php');
}
How bad is it?