Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (is_category('category1')) {
- echo "category1class";
- if (is_category('category2')) {
- echo "category2class";
- } else {
- echo "generalcategoryclass";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement