Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [draft]

The tag has no usage guidance.

0
votes
0answers
9 views

BUG - Published articles remain in the drafts? [closed]

I don't understand why but my new wp articles are published but they remain in draft section since 10/12 days. It was working perfectly well. If someone has an idea, it would be very helpful. Have a ...
0
votes
0answers
11 views

How can I best automate publishing a given number of recent draft Posts for a custom post type after every one minute?

I've looked at several ways this can be done, and the reason why its not been fruitful is because I am targeting posts added via the REST API from the APP. When posts are added via the app with a ...
0
votes
0answers
28 views

Draft post previews using the incorrect URL, leading to a 404

I've recently moved a Wordpress installation to a new URL, everything works as expected, apart from draft post previews. The issue is, we're using a different address for the wordpress admin, and the ...
0
votes
3answers
58 views

Wordpress 4.9.8 doesn't save if content has style="

Wordpress 4.9.8 when I save a draft/publish return me an error: Gone The requested resource /wp-admin/post.php is no longer available on this server and there is no forwarding address. Please ...
0
votes
1answer
27 views

Bulk unpublish posts between specific dates (e.g. from April 2017 and earlier)?

I need to unpublish (i.e., set to draft) a bunch of posts from a site, but within a specific time frame (that is to say, they don't want all the posts unpublished, just within specific dates). In ...
0
votes
2answers
23 views

Admin sidebar overlapping on editor when saving draft

I am having this weird problem. Everytime I save a draft, the sidebar's black area appears and overlaps the editor making the editor unusable. It also attempts to save the draft repetitively and the ...
2
votes
1answer
35 views

Does WordPress remove draft status automatically?

Last week our marketing team placed around 35 posts inside of draft due to some legal issues in our market. This week the same marketing team has reported that WordPress has somehow Published these ...
0
votes
0answers
15 views

How to change draft mode message on front end of the site

If I have a page or a post that enters draft mode (because the page is currently being modified internally by an editor), how can I change a message on the front end of that given page, so that when a ...
1
vote
0answers
20 views

How can i access my draft which disappeared when i uninstalled the app?

I was using the WordPress App on my phone which had some drafts and unfinished posts saved in "Blog Posts" as local drafts. But due to some reason I uninstalled the app..When I installed it again, I ...
0
votes
0answers
20 views

Programmatically create draft of existing post

Hi wordpress community, What I am trying to do is programmatically create an updated draft (not live) of a published post - so that the changes will be recorded but not published. Right now, my ...
0
votes
0answers
11 views

Draf products not save custom fields

I’m using a plugin to copy products from other stores and save it as draft products. With the crawling I add custom fields, but If I publish all products with the bulk option the field don’t display, ...
1
vote
0answers
80 views

Disable saving posts as draft (make all posts mandatory regardless of the post status)

I have a custom post type for which I would like to disable saving as draft functionality. I don't think about autosave/revisions, just disabling drafts. Only publishing should be allowed. Also, no ...
0
votes
1answer
41 views

Customized role that allows users to “Submit for Review” instead of “Publish”

The functionality I'm trying to achieve is a user role that allows the user to submit drafts of edits but not publish edits. Their edits must be published by an Editor or higher role user. I've ...
0
votes
1answer
32 views

Is there a plugin to merge several drafts into a new post?

I want to save drafts throught the week, and then publish them in a new post called something like week news. ¿How could I do it? Thanks!
0
votes
0answers
15 views

Can't preview draft while using site_url different from home_url

We are migrating an existing Wordpress installation from our servers to a Wordpress host (WP Engine). Since the beginning, our blog is a subpath of our domain and because of a marketing strategy, we ...
0
votes
1answer
154 views

wp_update_post to set post IDs to drafts not working

Specifically WooCommerce Product Pages. I'm using WP_Query to generate the array. $params = array( 'posts_per_page' => -1, 'post_type' => 'product', 'orderby' => 'menu-order', ...
0
votes
0answers
32 views

How to edit posts/pages without making the change live?

We have a situation here at work I've never run into in many years of working with Wordpress. In the past, it's been acceptable to edit a post or page, click update, and make the changes live on the ...
0
votes
1answer
124 views

Custom Post Type Draft Preview Goes to 404

I have created a custom post type within a custom plugin. Here is my post type definition: function hrd_record_custom_post_type() { $args = array( 'description' => __( '...
0
votes
0answers
47 views

New post overwrites previous

I published an article, which went up fine. Then I went to publish the next article and as soon as that published, the previous article disappeared. The new one has permalink the same as previous. ...
1
vote
1answer
26 views

WordPress Comments are automatically publishing

I want to manually approve comments when someone will comment on any of the post. Right now when someone comment on any of the post these are automatically approved and published. I have changed ...
1
vote
1answer
26 views

Dashboard :10 Last draft page and 10 last pending review page (metabox)

I want to display on the dashboard for some users role (Admin, editor and auther) . a box with 10 last draft page and 10 last edit page. For the 10 last edited page I use the custom below : ...
0
votes
0answers
41 views

How do I prevent draft posts from being accessible publicly?

I am currently having some issues with a site that has fairly high traffic where draft versions of posts are being linked directly and actually being hit dozens and in some cases hundreds of times. ...
0
votes
2answers
28 views

Connection dropped due to file size

We use Open Live Writer to upload to our Wordpress Blog on GoDaddy. It takes us numerous times to upload the draft with pictures to the Blog as we get the error message of lost connection. I have ...
1
vote
1answer
191 views

Custom Search for Drafts in Custom Post Type

Is it possible to create a search page that will search for a keyword only in a custom post type that has the status "draft?" Basically, I have a lot of data I was planning on importing as a custom ...
0
votes
1answer
30 views

draft post and publish post manage

it is possible after the publication of an article by a custom role prevent him from putting it back in the draft (the only admin can do this)? What's the code? Thanks for your help!
1
vote
2answers
218 views

Remove “Save draft” button without using CSS

Is there a way to remove "Save draft" button without the use of CSS?
1
vote
1answer
1k views

How to unpublish a page and still keep a draft?

I have a holiday sale page that no longer applies as the holidays have past. I want to keep the page for future design reference. I do not want the page to be accessible from the Internet. I ...
1
vote
0answers
102 views

Lost draft under all posts and drafts

I'm trying to delete drafts that I've never created. I suppose they are auto drafts. Searched and searched but maybe because it's a super easy fix that no one asks, but can't figure out how to ...
6
votes
2answers
145 views

Is there a way to set a user profile to Draft?

Is there a way to hide user profiles in the front end, while still allowing their information to be accessible in the backend? Something similar to setting posts or pages to "draft" but for users ...
1
vote
1answer
204 views

Can we have private drafts?

As per the documentation, Draft and Private are two mutually exclusive post statuses. Therefore, when you mark a draft post as Private, it is no longer a draft. We are a big team making extensive use ...
1
vote
1answer
1k views

Wordpress Api Get Drafts

I want to check if a post already exists. This includes to check if the post exists as draft as well. But I struggle a little bit with the wordpress API v2. http://v2.wp-api.org/reference/posts/ Under ...
1
vote
2answers
62 views

Can I set a timer for pages to be published?

I have a page that's in draft mode right now because I want to publish this on a particular day (sometime this week). Is there a way that I can set a timer/countdown for this page to automatically be ...
0
votes
1answer
399 views

How do I redirect a permalink for a Draft post to a custom 404 page?

My users create posts with links to future posts which are in Draft status. We use Post Name as our permalink structure. Eg. <a href="/future-draft-post">Here is our next fantastic post ...
1
vote
1answer
332 views

save imported posts as drafts

i m trying to import data into as my posts using wp all import and use add_action(save_post,myfunc) to run a function to update some fields all's good so far...but instead of publishing them all at ...
2
votes
1answer
3k views

How to make draft posts or posts in review accessible via full url / slug?

I am running a website with WordPress 4.2 and have changed the way draft posts or posts in review status are displayed to non logged in users (these posts are, too, visible to anyone who visits the ...
0
votes
1answer
1k views

Making draft page as the main page

A very newbie question. I wanted to update my home page. I copied it as a draft and made the modifications. Now.. how do I make it the main home page? It sounds very simple but have been totally ...
0
votes
0answers
104 views

Auto draft posts when scheduled date is reached

I have a plugin that allows all scheduled posts to be visible immediately... I'm looking for a function that will automatically set a post's status to "draft" when it reaches it's scheduled date and ...
0
votes
1answer
245 views

Allow signed in users (subscribers) to see their drafts

I allow signed in users to post on my site using a form. They can also save drafts. However, their role doesn't allow them to actually see their drafts so they see a 404 page. How can I allow them ...
0
votes
2answers
1k views

l accidentally permanently deleted a Draft. There's any way I can recover it?

I recently started a blog and I was about to finish my second Post. I was cleaning up some stuff and decided to empty my Trash. I wasn't paying much attention to it because I wasn't expecting my ...
0
votes
1answer
3k views

Save Draft and Preview not working (1 post)

I'm on WP 4.3, latest. The "Save Draft" and "Preview" functionality aren't working. Drafts are not being saved. Clicking that button takes me to the home page of my website. Same with Preview. I ...
-1
votes
1answer
823 views

Display draft posts on single pages [duplicate]

I made my published post as draft post. It is not showing it in the website blog, but, when i use its URL it is showing "Error 404 - Not Found". but what i want is to show the content of draft post ...
1
vote
1answer
334 views

Clicking On View Post In Draft Opens New Tab

Since 4.0, when you save a post as a Draft the View Post link opens the saved post in a new tab. (target ="_blank") Is there a way to revert back to the previous behaviour (which was to open the ...
1
vote
0answers
164 views

wp_publish_post to saved draft, permalinks broken

I'm creating a system, where some custom post drafts are being prepared, and after certain actions taken by moderators it is being automatically published. So, first I create post draft like that: $...
-1
votes
1answer
8k views

Return All Post from publish to draft [duplicate]

I do something error, I transfer yesterday all post from draft to publish by my user, Now how can i return all this post to draft ??
0
votes
0answers
101 views

Users can only save their draft once before saving for revision

I use the Members Plugin and Custom Post Types. I created a role and want them to contribute posts (within this Custom Post Type musician) but don't publish them. Additionally I want to give the ...
4
votes
1answer
2k views

Can't preview drafts after upgrade to 4.0!

I recently updated to wordpress 4.0. However, when I try to preview my drafts, I receive an error saying that I do not have the permission to do so. I've cleared my cache and cookies and restarted my ...
0
votes
0answers
102 views

CPT unsaved draft gives error 404 - when Post Formats support enabled

I've a plugin for Portfolio CPT (can be downloaded from here: http://bit.ly/1tEj5bC), using this plugin, every thing works fine. But when i edit any portfolio entry and click on 'Preview Changes' ...
2
votes
2answers
1k views

I can't preview post's change once they are published

The preview function works fine when posts are just draft. The url looks like this : http://exemple.domain.com/blog/?p=12&preview=true Then when I pubish my posts, let's say I want to change ...
-1
votes
2answers
1k 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
2k 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 posts,...