Advertisement
Guest User

Untitled

a guest
Dec 6th, 2012
65
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. if (is_category('category1')) {
  3.     echo "category1class";
  4. if (is_category('category2')) {
  5.     echo "category2class";
  6. } else {
  7.     echo "generalcategoryclass";
  8. }
  9. ?>
Advertisement
RAW Paste Data Copied
Advertisement