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

Current Code

By: a guest on Dec 7th, 2012  |  syntax: PHP  |  size: 0.32 KB  |  views: 33  |  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 $parent = get_cat_ID('Sports'); query_posts("cat=-$parent");?>
  2.                                 <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  3.                                         <h2><?php the_title(); ?></h2>
  4.                                 <?php endwhile; else: ?>
  5.                                         <p>We're sorry...currently, there are no slideshow images.</p>
  6.                                 <?php endif; ?>
  7.                         <?php wp_reset_query(); ?>