I use the following code on one of my sites that is a City site that lists items such as Restaurants. Under restaurants I have about 20 sub categories. The Following code works well if I use cat-ID but how can I make it use cat-SLUG instead.
I find that I’m having to stop and look up ID numbers to make sure I’m editing the right files or which files I need to edit. So Instead of say cat-5.php I want cat-restaurants.php and then have all the child categories default to cat-restaurants.php
- The topic ‘Category Slug Instead of ID Help’ is closed to new replies.