Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 6th, 2012  |  syntax: PHP  |  size: 0.34 KB  |  views: 17  |  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.             <div class="<?php
  2.         if (is_category('category1')) {
  3.             echo "category1class";
  4.         if (is_category('category2')) {
  5.             echo "category2class";
  6.         } else {
  7.             echo "generalcategoryclass";
  8.         }
  9.         ?>
  10.     ">
  11.             <?php the_content('Read More...'); ?>
  12.             </div>