SHARE
TWEET

Untitled

a guest Dec 6th, 2012 54 Never
  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. ?>
RAW Paste Data
Top