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; ?>
Leave a comment

0 Comments.

Leave a Reply


[ Ctrl + Enter ]

*

Wordpress Freelancer, Joomla Freelancer Web designer Mumbai india, Wordpress web developer India, Joomla Web developer india, Outsourcing web project india mumbai

By Santosh Kori Published: October 10, 2012 Professional Freelance Website developer 5 stars based on 65 reviews Total time: 24 hour 00 min Wordpress Joomla XHTML CSS jQuery HTML5 eCommerce CSS3 ☞ Offers low cost freelance web designing, asp php asp.net web development services from Mumbai India. Freelance web designer & developer Mumbai India.

I AM NOT AVAILABLE FOR WEB DESIGN & DEVELOPMENT PROJECTS