Home » Wordpress » How to Show Pending Review post to front end logged-In users in wordpress

Here is wordpress snipped code to Show “Pending Review” post to frontend logged-In users. Other Normal users which are not logged into wordpress website cant see “pending review “post in post list.

<?php if(is_user_logged_in()): ?>
 <?php query_posts('cat=3&post_status=publish,draft&showposts=4'); ?>
 <?php else: ?>
 <?php query_posts('cat=3&post_status=publish&showposts=4'); ?>
 <?php endif; ?>

Array ( [0] => Wordpress )

Leave a comment

0 Comments.

Leave a Reply

You must be logged in to post a comment.