The draft tag has no wiki summary.
1
vote
1answer
136 views
Exclude Private, Draft pages from Primary Nav when using custom menu
I'm looking for ways to prevent "private" and "draft" pages from appearing (to non-logged-in admins) in a site's Primary Navigation menu which is based on a custom menu - other than manually removing ...
1
vote
0answers
62 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");
}
...
1
vote
0answers
47 views
redirect deleted / drafted pages
A client asked me to unpublished a page, which I did. However, I kept it as a draft, just in case they wanted to republish at a future date.
My issue is that anyone with this link will hit a 404 ...
0
votes
0answers
31 views
Capability to read user's own draft post of CPT
I've got a custom role called 'Gym' and custom post type (CPT) called 'Story'. Every Gym user can create a draft of a story and view their own story drafts.
My 'Story' CPT have got the following ...