Stack Exchange Network

Stack Exchange network consists of 175 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
1answer
10 views

What am I doing wrong creating post draft via wp-cron? (wp_schedule_event & wp_insert_post)

So I've been googling and apparently a lot of people have struggled with this for the past X years and there doesn't seem to be any clear responses on Stack Overflow. What I am developing is a ...
3
votes
2answers
40 views

Custom CSS for viewing a draft page on the frontend?

When viewing a draft page on the frontend, I'd like to see that status right away on the page itself. Currently, there is zero indication. Is there any way to have draft-specific CSS (or even just a ...
0
votes
3answers
118 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
86 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 ...
1
vote
0answers
23 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
30 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
83 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
82 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
1answer
263 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
36 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
160 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
70 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
28 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
30 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
44 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
244 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
283 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
2k 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
114 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
175 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
241 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 ...
2
votes
1answer
2k 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
67 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
444 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
380 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
4k 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
2k 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
120 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
282 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
2k 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
950 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
393 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
171 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
9k 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
105 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
112 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' ...
3
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
2k 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,...
0
votes
0answers
504 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 ...
5
votes
1answer
988 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
48 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 ...