Advertisement
pixeline

Frontpage WP loops

Aug 31st, 2012
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.81 KB | None | 0 0
  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(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement