Include PHP file depending on category
-
How can I include a different PHP depending on what category name the current post is linked to?
For example;
If the current post is in category = DVD then I want to be able to show dvd.php and if the current post is in category = CD then I want to be able to show cd.php
I am using custom post types, if that makes a difference.
Any help would be great.
The topic ‘Include PHP file depending on category’ is closed to new replies.