Forums
(@naholyr)
17 years, 6 months ago
You could try this :
include ‘/path/to/category-‘ . $wp_query->get(‘cat’) . ‘.php’;
It will include “/path/to/category-1.php” for category ID 1, “/path/to/category-2.php” for category ID 2, etc…