Link to home
Start Free TrialLog in
Avatar of Chris Andrews
Chris AndrewsFlag for United States of America

asked on

wordpress: how can I show pending status on single.php?

My theme has it's own interface for user's to enter their posts. After they enter the post, the page loops back and shows the post.

I've changed the functions in the theme to set the first post as 'pending', so I can review it.

I need to let the user know the post is pending though.

What can I put into single.php so show that the post is pending? I want to do something like this:

if (post is pending) {  //how do I code this part?
echo "Your post will go live after it's reviewed";
}

Would appreciate any help,  Chris

ASKER CERTIFIED SOLUTION
Avatar of Heather Ritchey
Heather Ritchey
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Chris Andrews

ASKER

Just AWESOME!

Thank you very much,

Chris