WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
  1. When a user creates a new post it will have "pending" status. So I want the visitor (guest - not logged user) to be able to view "Pending" posts and vote it to "Publish" if enough "X Votes". Google bot can also crawl "Pending" Posts.

  2. I want to use permalink for "Pending" Post.

How can I do this?

Please help me! Thanks all friends!

share|improve this question
Not an answer (I'm not allowed to comment), but I'm wondering if you've ever figured this out? I'm also looking to allow visitors to see pending posts even though they don't necessarily have the proper credentials. Thanks. – danbrellis Feb 24 '15 at 21:39

For displaying "Pending" post to the users you can add "post_status" parameter to get_post() or wp_query function like

post_status (string / array) - use post status. Retrieves posts by Post Status. Default value is 'publish', but if the user is logged in, 'private' is added. And if the query is run in an admin context (administration area or AJAX call), protected statuses are added too. By default protected statuses are 'future', 'draft' and 'pending'.

'publish' - a published post or page.

'pending' - post is pending review.

'draft' - a post in draft status.

'auto-draft' - a newly created post, with no content.

'future' - a post to publish in the future.

'private' - not visible to users who are not logged in.

'inherit' - a revision. see get_children.

'trash' - post is in trashbin (available with Version 2.9).

'any' - retrieves any status except those from post types with 'exclude_from_search' set to true.

Or you can check the wordpress codex for other help.

share|improve this answer
I know it, but I want to visitor (guest - not logged user) and google-bot can view "Pending Review" Post. Thank you, friend! – Zen Nguyễn Jun 18 '13 at 5:14
@user31368, you will have to use codex.wordpress.org/Class_Reference/WP_Query or codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts in order to use the method described by Zen. If you don't understand how to modify the loop or filter posts, please research those in the Codex. Otherwise you will need to hire help. – sprclldr Jun 18 '13 at 12:55
I think Wordpress is have a function in the core to exclude the visitor can view the pending post. So we need to know about that funtion. :( – Zen Nguyễn Jun 19 '13 at 2:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.