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

Frontpage WP loops

By: pixeline on Aug 31st, 2012  |  syntax: PHP  |  size: 0.81 KB  |  views: 44  |  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. <!-- Latest Works -->
  2. <?php
  3. $posts = new WP_Query(array(
  4.    'post_type' => 'pixeline_product',
  5.    'posts_per_page' => 3
  6. ));
  7.  
  8. if( $posts ) :
  9.         ?>
  10.           <section class="horiz-container">
  11.             <div class="content-wrapper"><?
  12.         pixeline_list_of_posts($posts ,'recent-works', 'Recent works.');
  13.         ?>
  14.             </div>
  15.           </section>
  16.  
  17.   <?php endif; ?>
  18.  
  19. <?php wp_reset_query(); ?>
  20.  
  21.  
  22.  
  23. <!-- Latest Posts -->
  24. <?php
  25. $posts = new WP_Query(array(
  26.    'post_type' => 'post',
  27.    'category'=>122,
  28.    'posts_per_page' => 5,
  29.    'numberposts'=>5
  30. ));
  31. ?>
  32. <?php if( $posts ) :
  33.         ?>
  34.           <section class="horiz-container">
  35.             <div class="content-wrapper"><?
  36.         pixeline_list_of_posts($posts , 'chitchat', 'chitchat.');
  37.         ?>
  38.             </div>
  39.           </section>
  40.  
  41.   <?php endif; ?>
  42.  
  43. <?php wp_reset_query(); ?>