The post-status tag has no wiki summary.
8
votes
3answers
7k views
How to Get All Posts with any post status?
i am creating a frontend dashboard where i need to show all the post by the current user. So i need to show posts with all post status. Mainly published, trashed and the pending. I am now using ...
0
votes
2answers
3k views
How to update page status from publish to draft and draft to publish
I am trying to figure out how to write the code that will allow me to do the following with pages of a WordPress blog?
"To change a post status, you get the post, change its status field, then call ...
2
votes
3answers
1k views
How to 301 private posts rather than 404?
How do I 301 redirect private pages, rather than 404 them? If a post is private, WordPress filters it out in the SQL query, so there are no $post variables to work with.
I'd like for this code to ...