SHARE
TWEET

Untitled

a guest Nov 20th, 2013 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php $the_query = new WP_Query( 'posts_per_page=-5&author=1,2,3' ); ?>
  2. <?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?>
  3. <ol>
  4.  <li>
  5.  <div><?php echo get_avatar( get_the_author_meta( 'user_email' )); ?></div>
  6.  
  7.  <blockquote>
  8.  <p><?php the_content(__('(moreā€¦)')); ?><?php the_time('F jS, Y'); ?> by <?php the_author(); ?></span></p>
  9.  
  10.  
  11.  <SPAN ID="edit-delete"><?php $edit_post = add_query_arg('post', get_the_ID(), get_permalink(13 + $_POST['_wp_http_referer'])); ?>
  12. <a href="<?php echo $edit_post; ?>">Edit | </a>
  13.  
  14. <?php if( !(get_post_status() == 'trash') ) : ?>
  15. <a onclick="return confirm('Are you sure you wish to delete post: <?php echo get_the_title() ?>?')"href="<?php echo get_delete_post_link( get_the_ID() ); ?>">Delete</a><?php endif; ?></span>
  16.  </blockquote>
  17.  </li>
  18. </ol>
  19. <?php endwhile;?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top