Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 8th, 2013  |  syntax: None  |  size: 0.41 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
  2. if ( is_user_logged_in() ):
  3.  
  4. query_posts(array(
  5.         'post_type' => 'klusjes',
  6.         'showposts' => 3
  7.     ) );  
  8. ?>
  9. <?php while (have_posts()) : the_post(); ?>
  10.         <h3><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3>
  11.         <p><?php echo limit_words(get_the_excerpt(), '20'); ?></p>
  12. <?php endwhile;
  13.  
  14. else :
  15.  
  16.     echo "Je hebt nog geen klusjes geplaatst";
  17.  
  18. endif;
  19. ?>
clone this paste RAW Paste Data