The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
29 views

How To Force User to Enter Post Title First When Adding New Post

This is my first ever question here and In a wordpress newbie so please bear with me. Using a plugin, I set a custom upload directory, to save the uploaded media (post images and featured image) in ...
0
votes
0answers
27 views

WordPress is creating a lot of draft posts

My WordPress install (with the following plugins) randomly creates Draft posts whenever I load the posts page. Is there a way to find out which plugin is doing this (aside from deactivating)? Has ...
0
votes
1answer
35 views

wp_insert_post Only creates draft

When I call wp_insert_post() with a post status, it only creates posts with "Draft" status. I've tested it with WordPress built-in statuses and my custom post statuses. But it only creates Draft ...
0
votes
0answers
25 views

wp_insert_post hook not being called with wp_publish_post or wp_insert_post?

I have a plugin that converts hashtags (any text that starts with #) into Wordpress tags. It's working great when I manually create a post via the Wordpress dashboard, but doesn't work when I ...
3
votes
1answer
176 views

wp_delete_auto_drafts() deletes links in menus

Since yesterday the wp_scheduled_auto_draft_delete cron job somehow deletes all page entries from our menus. All entries in the table wp_postmeta with meta_key = '_menu_item_object' and meta_value = ...
0
votes
0answers
26 views

Why does typing a post in the Quick Draft or comments, eliminate double spaces?

I'm personally a fan of using two spaces after periods, in order to improve readability of my material. But lately I've been using the Quick Draft feature in the dashboard, to jot things down, and ...
0
votes
0answers
17 views

Display multiple “save draft button” on a post edit

I am aware of the submit_button() and get_submit_button() function, but can I call a "save draft" button on the same way? I have a very long "edit post page" and would like to display the save draft ...
0
votes
1answer
34 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
206 views

'Auto Draft' Post showing in wordpress loop

When running a wordpress loop, I am seeing these weird posts called auto draft. I have never seen this before. Does anyone know what they are and how to get rid of them? Any help is appreciated as ...
0
votes
0answers
13 views

wp query return post draft

How can I get wp-query to return a post's draft using the get variables provided when you click preview post in wp-admin. ?preview=true&preview_id=5&preview_nonce=96d5ce0bb5
0
votes
0answers
19 views

Using a url variable, is there a way to display a draft post when not logged in [duplicate]

Is there a method of displaying a post that is a draft when not logged in? For example I have created a mailer template for my news... <?php if ( isset($_GET["mailer"]) ) get_template_part( ...
0
votes
1answer
47 views

Edit draft from other author

I need that editors in my blog can read and edit drafts from other authors. I've tried some access manager plugins: Advanced Access Manager User Role Editor But none of these helped me. I've also ...
0
votes
1answer
35 views

I need to modify drafts using custom data from database and then publish it

First of all I'm still relatively new to programming and wordpress development. I'm building a plugin that takes custom data from database and a list of saved drafts and then modifies draft chosen ...
0
votes
2answers
132 views

Custom post type draft use wrong template

I have a custom post type called agenda with a custom post template called single-agenda.php. When I have a draft of an agenda post, this uses the content in the template single.php. When I publish ...
0
votes
0answers
46 views

How to preview and publish multiple drafts?

How can I as administrator preview all post drafts like in a regular archive, with simple "publish" and "trash" buttons/links for each post? Do I need to develop a plugin or could this be done simply ...
1
vote
1answer
106 views

Saving Custom Field Data before Publish

When creating a page or a post WordPress lets the content (title, body, featured image) be saved when using Ctrl + S. The Custom Fields do not save in the same way (in this case I'm using Advanced ...
8
votes
4answers
900 views

How do I make a draft post accessible to everyone?

I have several unpublished posts in my Wordpress website and I am trying to make it accessible for normal users (who are not logged in) using the normal post slugs (site.com/post-here). I understand ...
1
vote
1answer
104 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 ...
1
vote
1answer
49 views

Include drafts in internal link dialog

Ok, so I'm doing a new project and we're going to be using Wordpress as a magazine CMS. In some cases we'll have a cluster of articles about a topic and it will be natural to link from one article to ...
1
vote
2answers
113 views

'Archive' folder for posts and pages

Of course there is a Drafts section in Post and Pages, but how would I make an Archive section - which would contain previously published posts and page?
0
votes
0answers
97 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 ...
0
votes
1answer
111 views

How to debug | Some times the “Save Draft” button seems to spin but does not actually save

I am using wordpress 3.5.1 and lately there seems to be a recurring problem with the save draft function where it seems like the draft was saved (i.e the wheel finishes spinning without an error ...
0
votes
2answers
76 views

How to show or hide a post based on meta_value selection?

How would I go about hiding a post based on a meta_value selection done on the back end. The usual method is to just change the post status from Publish to Draft however, I want this to work based on ...
1
vote
0answers
116 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"); } ...
2
votes
1answer
394 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
4answers
790 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 ...
5
votes
2answers
354 views

Passing current cookies in wp_remote_get to get Draft Post Preview

I want pass current user cookies in wp_remote_get function to get a Draft Post Preview page content. I check already the questions: What URL do you pass to wp_remote_get to load the body of the ...
2
votes
2answers
501 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 ...
0
votes
1answer
125 views

Preview page/post revisions without overwriting current content

Is it possible to add or update a Post/Page without it overwriting the current content that it on there? I need to make some edits to a page, but I need to have someone review it before I can publish ...
1
vote
1answer
89 views

Don't post or draft if post already exists

I've got a problem. I don't want duplicate posts. Any way to check if a post already exists and if it does just set the new one to draft? I am using IFTTT to update my blog and sometimes it posts ...
1
vote
0answers
78 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
1answer
133 views

Displaying number of drafts in Posts section of admin sidebar

Is there a WP plugin to show the number of drafts in the Posts section of the admin sidebar in the same way that the number of available updates is shown? I’m looking for something like the following ...
3
votes
4answers
505 views

How to show the real post date in a draft

When looking at a draft post, get_the_date() only seems to return today's date, not the post date, even if I have selected another date on the post edit screen. Is there a way to show the "actual" ...
3
votes
2answers
648 views

How to get the clean permalink in a draft?

When I use the_permalink or get_the_permalink in a draft or scheduled post, the URL provided is not the "final" permalink—it is the unpretty ?p=xxxxx version. How can I get the final, "clean" ...
0
votes
1answer
588 views

Remove Save Draft & Preview Buttions.. and also Statius: Draft & Visibility: Public

I want to remove the entire section that says Save Draft, Preview and Status: Draft and Visibility: Public. I want to not show it. Its ok if it is still fuctional. Attached is the part I do not want ...
2
votes
1answer
556 views

Check if post is in draft or pending review?

Each of our posts are reviews for individual games and we occasionally have to 'pause' the game by changing it from published to pending review. The problem is if the page is indexed by search ...
1
vote
1answer
365 views

Where is the WP auto-save draft JavaScript?

If you write a title, then move away from (blur) that input field, WordPress will auto-save a draft for you, likely in order to create a post slug placeholder for you. I'm looking to possibly extend ...
0
votes
1answer
145 views

Keep post's draft date after publishing?

I let users add posts in draft status. After I check and see that everything is ok, I publish them. I noticed that drafts created two days ago change date after being published. Is there any way of ...
0
votes
1answer
467 views

Preview Post/Custom Post types in Archive

I have a few custom post types on my website. One of these is a front page slider. I add some text, images, links and as soon as I publish the CPT appears as a slide and I'm a happy camper. The ...
1
vote
2answers
682 views

How to allow a user to make their post (ad) a draft, and then publish again without needing approval?

I'm using WordPress as a directory site, where a user can submit a post, which becomes their ad/listing. The users are assigned a custom wordpress role. Posts need to need to be approved and ...
0
votes
2answers
936 views

Some users getting a 404 when previewing draft posts/pages

I have a WP network and have found that users with roles other than "super user" (admins, editors, authors, etc.) are getting a 404 when trying to preview draft posts/pages/custom post types. Any ...
0
votes
1answer
315 views

How to list “invisible” Auto Drafts?

I noticed that when starting to create a new post, and only attach images and then when leavning the post for some reason, it won't show up in the list post view. However when you look in the Media ...
2
votes
1answer
831 views

Post Auto Draft Issue

I've made custom post type without title and editor and I use custom taxonomies, custom fields and attachments to form a post. My title is generated from custom taxonomies and custom fields (or "ID #" ...
2
votes
1answer
1k views

Is it possible to link to draft pages?

Problem: I have a overview-page with a sub-page. Both pages are still in status "draft". Now I want to create a link on the overview-page to the sub-page, a popup appears, but in the list of internal ...
1
vote
2answers
603 views

How to disable drafts?

Using Wordpress 3.1 is it possible to completely disable the drafts functionality or at least remove the "Save Draft" button from the post screen?
0
votes
1answer
487 views

Show Published and Draft posts from Logged in Author

Hello there that's what i'm trying to achieve: i have a private page, where only author can access, after log in. i want to show two columns: 1 - excerpts of the latest 8 posts published by the logged ...
0
votes
1answer
116 views

Set page to draft on plugin deactivation

Im working on a little plugin that when activated creates a theme page and then a function sets this page to published this is the code i have for published: // function that creates the new ads page ...
16
votes
8answers
6k views

Is there any way to draft a revision of a published page or post? What workarounds have you used?

Say I've already published a page or post. I now want to make changes, but I want a colleague to check them over before they go live. Is there any way of doing this? Edit: I do realise this isn't ...
2
votes
2answers
3k views

Create slugs programmatically

I'm updating programmatically posts in a WP 3.01 install, using custom made tools. Sometimes I do change programmatically post_status from DRAFT to PUBLISHED using custom SELECT queries, however this ...
9
votes
4answers
227 views

How can I delay the publishing of a page or post?

Sometimes it would be nice to be able to set a draft to be published when I'm not in front of the keyboard. Is this possible? If so, how?