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

learn more… | top users | synonyms

0
votes
1answer
25 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
61 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
46 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
30 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" ...
0
votes
1answer
29 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 ...
0
votes
0answers
66 views

approval of posts via email

Update: Ok, not sure how much all that makes sense, so will try and write a brief explaining the problem a bit better. I have my code working so via email using 'post status transitions' the user ...
0
votes
0answers
28 views

Manipulating register_post_status() setup on pageload

This is a long shot, but I spend hours here to find answers, so I post a question. When register custom post status in my functions.php. Can I provide diffrent parameters for diffrent user views? ...
0
votes
1answer
170 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 ...
0
votes
0answers
25 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
0answers
48 views

Show private posts by group leader to members of that group across the website

Group leader - A designated user creates private posts. Group member - I want a certain subset of my users to be able to see it across the website (on taxonomy/tag pages as well as the actual single ...
0
votes
1answer
121 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 ...
4
votes
2answers
116 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 ...
0
votes
0answers
111 views

Allow authors to edit pending posts

I am using the WP User Frontend plugin so that frontend user can create posts. The users creates a post, the admin has to review/publish it. Then if needed, the author can edit his posts, they are ...
0
votes
1answer
119 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'.
0
votes
2answers
57 views

Do something when user creates post (that's pending)

How do i do something when a (normal) user creates a post (that is submitted for approval) I currently have: function emailinvestment( $new_status, $old_status, $post_id ) { if ( ...
0
votes
1answer
77 views

Change post status based on user role

I have a site I'm working on where users pay a monthly fee to be able to add content to the site and they are assigned a custom user role when registered. When their subscription is up their user role ...
0
votes
1answer
54 views

Query for draft or scheduled post

What should be the query for checking if there is any draft or scheduled post, I'm not able to make which arguments to take. Thanks
0
votes
2answers
303 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
1answer
239 views

Check whether a custom taxonomy term has published posts?

I'm making a magazine theme for a client and using a custom 'issue' taxonomy. There is a new issue every week, and I also have a function that get's the latest issue. But the editor creates a new ...
2
votes
1answer
110 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() ...
0
votes
1answer
260 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
1answer
56 views

Is it possible to cancel a post status transition?

Question I want to cancel pending_to_published actions: Posts that match certain criteria should that go from pending to published should stay pending. (Alternatively, I need a to make add an ...
0
votes
1answer
111 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
0answers
16 views

How to automatically change post status by custom field? [duplicate]

I want to automatically change the post status from published to draft or trash by a custom field date. So when a post has a custom field date 10/7/2013 should change it's status when the date has ...
0
votes
1answer
78 views

Custom Query for searching through custom fields

Just wondered if someone could spare 5 mins to help me understand where I might be going wrong. I have a set of custom fields for jobs - I would like to create two drop down menus as a quick search: ...
0
votes
1answer
201 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. ...
0
votes
0answers
26 views

Allow author view custom status in post screen list

I made a custom status for a custom post type, and my custom role does not view it in post type screen list but the super admin can like this : << show_in_admin_status_list at true not working ...
1
vote
1answer
91 views

Add new post with predefined / preset date

The current situation The plugin I'm currently working on is an additional post list view: A calendar, as you can see in the following screenshot. Admin calendar view with MP6 and handheld screen ...
0
votes
1answer
182 views

How to display pending posts on the homepage only for editors

I'm working on a project where editors need to see the pending posts on the homepage to improve them before publish. Maybe there is something to do with the loop in this way: If editors logged: if ...
1
vote
1answer
202 views

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

When user creat a new post it will be have "pending" status. So I want to visitor (guest - not logged user) can view "Pending" post and User can vote it to "Publish" if enough "X Votes". Google bot ...
1
vote
1answer
93 views

Update post status from “publish” to “trash” for half of posts

I want to update half of all posts with status from published to trashed. Example: if I have 10000 posts, 5000 post to trash If I have 6000 posts, 3000 posts to trash If I have 7000 posts, 3500 ...
0
votes
1answer
50 views

Enforce conditions only for draft posts using WyPiekacz, ignore pending and published posts

I use WyPiekacz to set various conditions for authors when creating posts, for example checking if the post has a featured image or how many tags that are being used. It works fine. However, these ...
0
votes
1answer
152 views

Schedule future post to custom post status instead of publish?

I've been doing some research into custom post statuses and scheduling posts and I had a question: I was wondering if it were possible to schedule a post to got from future to a custom post status ...
1
vote
1answer
361 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
245 views

Alternative to new_to_publish Hook for Custom Statuses

I am looking for the right hook to use for sending out an email notice when a post is inserted. However, I am using custom statuses (in this case 'holding') which doesn't seem to get hit with the ...
5
votes
2answers
857 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 ...
1
vote
1answer
152 views

Detect type of post status transition

I have a function on my site that it supposed to run when a new post is published (email push notification), with the exception of the same article updated (i.e publish_to_publish transition, I don't ...
-1
votes
1answer
68 views

why do drafts return as part of wp_query?

I have some code as plugin, which I call via AJAX from a page one the site. It gets two drop-down values and uses them in tax_query to fetch some posts. Question: why do drafts return amongst results ...
0
votes
3answers
192 views

Showing posts for today and future

I'm using the following code to display posts with todays date or in the future... except the future part isn't working. If I take out the if statement then it shows all posts - in the past, present ...
1
vote
1answer
317 views

Count posts by type including drafts and pending posts

I had this function that counts posts number by type (taken from wordpress codex) function count_user_posts_by_type($userid, $post_type) { global $wpdb; $where = ...
1
vote
0answers
108 views

Changing status of Published posts which have less Content to “Draft”

function draftpost(){ global $wpdb; $prefix = $wpdb->prefix; $wpdb->query("UPDATE ".$prefix."posts SET post_status='draft' WHERE LENGTH( post_content ) <500"); } ...
0
votes
1answer
809 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 ...
1
vote
1answer
86 views

Modify Post Status Arguments

Is it possible to edit existing registered post statuses? I am using the Edit Flow plugin to create custom statuses, however, the plugin does not offer the option to set whether the statuses are ...
0
votes
1answer
94 views

Check if post was modified by editor different than post author

Is there a way to check if a post written by user X is modified by a different user (for example admin, or an editor)? What I want to achieve: I have a site where posts are submitted for publication ...
0
votes
1answer
76 views

Function is Missing an Action Hook

I have tied an action into a status change, which works on the backend. However,using a frontend button for updating post status does not trigger the ...
0
votes
1answer
2k views

Force Publish Future (Scheduled) Posts Immediately [duplicate]

I am trying to force publish 'future' or 'scheduled' posts, and I am having trouble The reason I am asking is because I am creating a site that allows users to do the editing on the front of the ...
2
votes
1answer
337 views

Create front end link to save post (or unpublish post) as draft

I have created a front-end posting and dashboard system for my users to add and edit their own posts. In the dashboard area, I have a list of their posts and the following options for each post: View ...
1
vote
1answer
256 views

Pending status by default for a specific role

I would like to prevent users from one specific role from publishing directly their articles. Only administrators should be able to approve these. The only choice they would ever have is to put their ...
1
vote
4answers
602 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 ...
-3
votes
3answers
225 views

posts stuck as drafts

I've recently seen a new bug appear on a site running WP e-commerce. New products (or certain existing products) get stuck as 'drafts'. Once they are marked as draft clicking 'publish' does not do any ...