
Publish with WordPress
How to change this WordPress behavior?
We need to update the ‘page.php’ template file from the 2011 (Twenty Eleven) theme package.
Compare its content. Before change:
get_header(); ?>
After change:
get_header(); ?>
post_status!='publish') {
?>
This page content is under review. See you later
Yes, I added check for page status into the main LOOP. If page is not in the ‘Published’ state then user will see message ‘page content is under review’, but will not see the updated content untill it will be reviewed by site Editor or Administrator.
How to change post status from ‘published’ to ‘pending’ after it was changed:
Tags: WordPress
