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 ...
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 ...
Is there any way to have more post statuses other than just draft or published? For example, if you write a lot of posts, you may wish to type up all the content, and set the status of these posts as ...