Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $the_query = new WP_Query( 'posts_per_page=-5&author=1,2,3' ); ?>
- <?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?>
- <ol>
- <li>
- <div><?php echo get_avatar( get_the_author_meta( 'user_email' )); ?></div>
- <blockquote>
- <p><?php the_content(__('(more…)')); ?><?php the_time('F jS, Y'); ?> by <?php the_author(); ?></span></p>
- <SPAN ID="edit-delete"><?php $edit_post = add_query_arg('post', get_the_ID(), get_permalink(13 + $_POST['_wp_http_referer'])); ?>
- <a href="<?php echo $edit_post; ?>">Edit | </a>
- <?php if( !(get_post_status() == 'trash') ) : ?>
- <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>
- </blockquote>
- </li>
- </ol>
- <?php endwhile;?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement