retrieve post details in loop
I have written a function to loop through the users posts, and im trying to display each of the posts by their status, with a different message for each status group.
I have written a function to loop through the users posts, and im trying to display each of the posts by their status, with a different message for each status group.
By default WordPress assigns the draft status to a post that has been untrashed. I would like to assign the pending status to posts that are untrashed.
I’m showing published and future posts on a category page.
I need to make future posts unclickable and add a special class to them in order to add a gray overlay, meaning the post is upcoming..
trying something like
I am trying to set a Post’s default visibility to ‘Private’ when a user first creates the post. They should then have the ability to manually select ‘published’ from the sidebar dropdown once they are ready or the post has been reviewed.
This is my loop:
Pre-Gutenberg, in the “Status & Visibility” panel, there used to be a way to change a Post’s status from “Published” to “Draft” or “Pending Review” – is that just gone now? The only way I can see to change a Page/Post’s status now via Quick Edit on the main admin-list page.
I need to display the online status (online/offline) for each author page (custom author page template).
I’m currently trying to implent a new custom column at the page manage screen that will let me change the status (published/pending) of the different pages via an easy toggle link.
I’m using this bit to insert/update a custom post type from the front-end. The date is set from a custom jquery datepicker.
I have similar problem as described in How to trap “Publish” button to check for meta box validation?
Answer there is to hook into save_post and change post type. How can I do it?
I try to use wp_transition_post_status but it doesn’t work for me…