Title: List pending Posts
Last modified: August 20, 2016

---

# List pending Posts

 *  Resolved [Lucas](https://wordpress.org/support/users/luquerias/)
 * (@luquerias)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/list-pending-posts/)
 * I wanted to know how to list pending posts in the frontend, and i finally did
   it… but i wanted to share the code i have used in order to know if i am using
   a proper way to list pending posts.
 * I don’t know much about coding, so i copy codes and try if they work… until i
   get the final solution i found 2 ways of doing it:
 * [First is](http://wordpress.org/support/topic/display-list-of-drafts-to-subscribers#post-1373098)
   writing this code just before the start of the Loop in a custom page template:
 *     ```
       <?php
       $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
       $args= array(
       	'post_status' => 'pending',
       	'paged' => $paged
       );
       query_posts($args);
       ?>
       ```
   
 * [Second is](http://stackoverflow.com/questions/13457380/wordpress-display-authors-drafts-and-pending-review-posts-in-frontend)
   doing the same but with this code:
 *     ```
       <?php
       $args= array(
           'post_type' => 'post',
           'post_status' => 'pending'
       );
       query_posts($args);
       ?>
       ```
   
 * Number 1 and 2 were not working fine…. but finally i found [the third one ](http://wp.smashingmagazine.com/2009/06/10/10-useful-wordpress-loop-hacks/):
 *     ```
       <?php query_posts('showposts=10&post_status=pending'); ?>
       ```
   
 * And it works… you can watch it in action [here](http://cortometrajesonline.com/cortometrajes/pendientes-de-revision).
 * So, is the third one a proper solution?
 * Many thanks!
    Lucas

The topic ‘List pending Posts’ is closed to new replies.

## Tags

 * [list](https://wordpress.org/support/topic-tag/list/)
 * [post_status](https://wordpress.org/support/topic-tag/post_status/)
 * [query_posts](https://wordpress.org/support/topic-tag/query_posts/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Lucas](https://wordpress.org/support/users/luquerias/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/list-pending-posts/)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
