WordPress allows you to set a workflow status of the content.

learn more… | top users | synonyms

0
votes
1answer
382 views

Adding custom post status to visibility in publish meta box

We have two different custom user roles that have custom capabilities. What I'm trying to do is to add two custom visibility statuses that are visible from the publish meta box on the edit page. ...
1
vote
1answer
481 views

How can a guest view the “Pending Review” Post?

When a user creates a new post it will have "pending" status. So I want the visitor (guest - not logged user) to be able to view "Pending" posts and vote it to "Publish" if enough "X Votes". Google ...
-1
votes
0answers
20 views

not able to hook the event for the state of article change to publish for the iOS app push notifications

i have developed an iOS app with wordpress as backend and i have written the server side code for the same. Now, i need to run my code when ever a post is published. Also i need to create a table to ...
0
votes
0answers
10 views

get_terms(); show private posts when logged in

Hi have a custom post type "FAQ". I got some "FAQ's" that are private, also only visible for logged in users. I used "get_terms()" funktion for a widget that is listing links to the categories of ...
1
vote
1answer
53 views

Setting post meta data to random value during post status transition / on publish

Upon publishing an unpublished draft, I'd like the custom meta value "post views count" to be set to a random variable between 829 and 1013. I am using the code below, which doesn't always work. It ...
1
vote
0answers
12 views

Add custom post type drafts to RSS feed

I have an RSS feed setup for my custom post types, but I'm trying to add in all posts with the status 'draft'. Here's what I've tried that doesn't seem to be working at the moment : function ...
0
votes
1answer
664 views

Override private status - Enable users to read private posts

Hidden private posts for not logged in users The private posts are by default only visible when logged in. Override, show private posts for everyone Is there a clever way to override this? Make it ...
0
votes
0answers
10 views

How to change post status link order(priority) on cpt listing page

On a custom post type listing page the registered post statuses are listed as links above the post lists. I've a situation where custom registered post types are showing after 'trash' and I still want ...
0
votes
1answer
1k views

How to change post status in hook?

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 ...
0
votes
1answer
29 views

How to define which register_post_status goes to which register_post_type?

New to registering post types but looking at samples, and the codex not helpful here. I am not understanding how the two of these relate? This is just bare bones so someone can explain (the parameter ...
0
votes
0answers
35 views

Add Dropdown to Filter Custom Post Type by Post Status

I want to add a dropdown filter in the admin area for a custom post type that will allow people to filter the posts by the post status but I can't figure out how. I have found lots of ...
0
votes
2answers
32 views

Changing a post status name

How do I change the status name "Trash" to "Archive". I don't want to change the functionality of the status or make a new status. I have tried Edit Flow custom status but I get some conflicts with ...
0
votes
1answer
38 views

How to update post status to draft if user role is "pending'

I'm creating a website where user pays to publish posts. If this user membership expires, the role changes from "Subscriber" to "Pending". I need a code that allows to update all posts to draft if ...
0
votes
0answers
37 views

Change Post Status from Plugin Settings page

I've been going at this for a few days now, and just can't finish this off. I have a plugin that on activation adds a custom post type (CPT), adds a couple of posts to the DB in a Draft status, and ...
1
vote
2answers
115 views

How to display future posts - modified query still yields 404

I have a very strange problem and I am stuck. I want the single page to display posts with the post_status of publish and future. So I added this code to my functions.php in my theme: function ...
1
vote
0answers
44 views

How to change custom post type status when non-admin updates post?

I allow users to submit posts (as a custom post type, "tribe_events") to my website. Is there a snippet I can add to my functions.php file that would change a post's status from "published" to ...
2
votes
1answer
612 views

Custom post status and preview

I am using wordpress 3.4 (the last before 3.5) and I have declared a post status type, and a custom user role called agent. It is for a custom post type, property. register_post_status( ...
0
votes
1answer
26 views

In the Edit Post page how do I modify with jQuery the status select list?

Here is my JS: jQuery('#post_status option[value="draft"]').text('Approve'); I simply trying to modify the text inside the option element in the status select form element in the Edit Post page. ...
0
votes
3answers
721 views

How to Modify this $wpdb query to accept an array of post statuses

I'm using this function from this accepted answer, which gets all values for a custom field key (cross-post). How could it be modified to allow an array of post statuses? function get_meta_values( ...
0
votes
0answers
25 views

On edit.php, Custom Status only using First Letter?

I've created a custom post type (positions) and a custom status (filled). In both cases, I used the snippets provided by generatewp.com to put things together. Things are actually working about 99% ...
3
votes
2answers
1k views

register_post_status and show_in_admin_all_list

I have a custom post status which should be public visible but not displayed in the "all" list of the edit screen. This is how I register the post status: ...
0
votes
1answer
68 views

Get new (not old) post inside transition_post_status hook

Following up the ticket 'transition_post_status' is executed before 'save_post', I'm still struggling how to access the new $post (after it has been saved) inside a transition_post_status hook. Right ...
0
votes
1answer
28 views

Post Status Frontend Announcement

I want to announce the logged-in user in front end (theme, not the backend), how many posts he has with htis statuses: awaiting moderation approved (published) not approved(rejected) since last ...
0
votes
0answers
29 views

Excluding certain post status's from pagination

If a user is logged in and browsing through archives, the current pagination function factors in posts that aren't yet published which can result in page numbers leading to 404 pages. How can I get ...
0
votes
0answers
14 views

Custom Status not displayed in Quick Edit

Using Piklist, I have created CPT booking with custom status (draft=>'waiting confirmation' and confirmed). This custom status is displayed well in Create/Edit page. But, it won't show up in quick ...
0
votes
0answers
24 views

How to display counter for post in navigation?

I have custom post type called Booking. It have custom post status : "waiting confirmation" and "confirmed". I want to display counter in navigation menu to count total post which status is "waiting ...
4
votes
1answer
92 views

Restrict a Post Types Post Status

I have a custom post type and a completely custom user interface to access it, and would like these posts to have a publish status. I know how to make them skip trash and be deleted immediately, but ...
0
votes
2answers
188 views

Auto-change Post Status on First Page Load

I have created a number of custom post statuses using the EdiFlow plugin. Now, what I am trying to do is, if the contribter visits the post edit page and the post status is "assigned" to automatically ...
0
votes
1answer
22 views

How to Show Different Information to your authors/contributers

One of the nice tricks that WordPress admins who have a number of authors/contributors could do to help them in writing content is to share with them relevant information based on where they are in ...
0
votes
0answers
30 views

auto-scheduling posts

I had to make a script for auto-scheduling post.. The interval between every post published should be of 20mins This is the code i made so far function techento_data_valid_schedule($data) { if ...
3
votes
1answer
1k views

Custom column for changing post status via ajax

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. From what I've ...
0
votes
1answer
155 views

get_posts includes “auto drafts”?

I'm using get_posts to generate a list of posts. $args = array( 'post_type' => 'post', 'numberposts' => -1, 'post_status' => array('publish'), 'orderby' ...
0
votes
1answer
38 views

Taxonomy vs Post Status

I'm building a web app so scalability is one of my main focuses when developing. On the app I am building I have a post type called 'Projects'. A project can be either be: Open In Work On Hold ...
0
votes
1answer
312 views

wordpress function to change post status

I'm running the YouTube Video Fetcher plugin at . It fetches videos using the youtube api and displays them on your website. Within the plugin script, there is the following sequence: if ...
0
votes
2answers
142 views

How to add custom status to quick edit

I have added some custom post status to WordPress, I can able display in New and Edit interfaces of POST. I would like to display those to quick edit too. Also I need to apply some condition to ...
0
votes
1answer
37 views

Why won't draft listings appear for non-admins?

I have a draft post with the author set to 5. User #5 is trying to view that draft on the front end using a WP_Query with the following arguments: array { ["name"]=> "example-52f00a8ba19f4" ...
11
votes
3answers
18k 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
1answer
58 views

Get publish post link?

Is there a way I can call a link so when clicked it publishes the post via the ID I provide? I have get_delete_post_link( $postID ) set fine, and would like to do the same to make a draft go to ...
1
vote
1answer
504 views

WP_Post_List_Table::get_views - Have post counts account for filters?

Toward the top of the edit.php screens there is a list that displays post statuses along with the post count. I believe this is generated by WP_Post_List_Table::get_views. For example All (7) | ...
1
vote
2answers
498 views

How to change post status from frontend?

I'd like to add the posts in my loop the ability to toggle them between different post statuses (e.g. publish/draft). What's the best way to do it? Thanks in advance!
5
votes
2answers
2k views

New post status for custom post type

I have a custom post type recipes. I am using a cron script to automatically aggregate news into the database. It is currently being imported and saved as 'Pending Review'. Is it possible to create ...
0
votes
1answer
230 views

Enable commenting on front-end preview page for pending posts

We are in the process of allowing authors to collaboratively be a part of the editorial process. They will have access to all pending posts' preview pages (not post-edit pages). I want to allow these ...
10
votes
2answers
376 views

Is it possible to have more “levels” of draft/published statuses?

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 ...
0
votes
0answers
27 views

How to create posts with a specific date in bulk

I need to import posts with a specific date. They way I am doing it now is I import as draft, then I use php to publish, then use php to change the date. The problem is that if I make a mistake in ...
0
votes
1answer
180 views

Display amount of pending posts in back/front end

I want to display the total amount of pending posts that my site has. My site is a single site, not a network. I am looking to echo that count in the back-end (a custom plugin page) and in the ...
2
votes
1answer
153 views

Problem duplicated shortlinks bitly

I've this plugin to create shortlink using the bitly API, but there's a problem! function yoast_bitly_shortlink($url, $id, $context, $allow_slugs) { if ( ( is_singular() && !is_preview() ...
4
votes
2answers
179 views

What is a “protected” post status?

I noticed in the register_post_status function in core that there is an arg for 'protected'. The following post statuses: 'future', 'draft', and 'pending' all have this set to true. I'm not talking ...
1
vote
1answer
306 views

Custom Post Status Posts viewable to the public

I am using EditFlow's "custom status" feature for an event calendar plugin I am writing for a client. I've created a status called "previous events", when a date has happened the events post_status ...
1
vote
4answers
1k views

change a post status when users update posts?

Is there an efficient way to change a post status from 'published' to 'draft' when a user of a certain type tries to update their posts. I tried something along these lines function ...
0
votes
1answer
307 views

How to set default status to custom post type

When I save my custom post_type 'product', I'd like to set their status to my custom status 'incomplete'.