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

category for slider

By: shelob9 on Feb 2nd, 2013  |  syntax: PHP  |  size: 0.26 KB  |  views: 34  |  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.         $cat = get_option('winterfell_theme_options');
  3.         $cat['slide-cat'];
  4.        
  5.         $categoryvariable = $cat;
  6.         $args = 'cat=' . $categoryvariable . '&orderby=date&order=ASC';
  7.        
  8.         query_posts( $args );
  9.         if(have_posts()) :
  10.             while(have_posts()) : the_post();
  11.         ?>
clone this paste RAW Paste Data