This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 6th, 2012  |  syntax: PHP  |  size: 0.17 KB  |  views: 48  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. ?>
clone this paste RAW Paste Data