Questions tagged [draft]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
8 views

Is it possible to export select draft posts (not all draft posts) in an XML file?

My wife wants to export a specific set of 111 draft posts from her site and import them on a WAMP server on her PC for reference. She has over 400 drafts, so she doesn't want to export all of them. ...
0
votes
1answer
15 views

Hook when post is set from published to draft?

Is there an action i can hook into when a post is set from published back to draft? I have tried both transition_post_status and publish_to_draft but they don't seem to work when I set the post back ...
0
votes
1answer
14 views

Content Visibility for Wordpress is not working (Drafts, public etc.)

I have an old WordPress installation. Unfortunately, public posts and drafts are displayed on the front. I think it's because of the wordpress loop. The following code is used: <section class="...
0
votes
0answers
20 views

Save draft button not saving blog post

I have spent ages trying to figure this out and I am baffled! Hoping to get some help. This is in relation to my wordpress.com blog http://befreewithlee.com/. My save draft button on my blog posts ...
0
votes
1answer
27 views

How to get the old Wordpress Draft Editor view back with the Word count?

I would like to change my drafts page back to normal. By normal I mean with the page count and other normal features shown in the 2nd image As you can see I can see the word count also in the old ...
0
votes
1answer
38 views

My posts are getting to Auto draft when I try to Publish

My posts on my site are getting into auto-draft mode when I try to publish it. So far, I have tried the following: 1. Change the theme. 2. Disable all plugins 3. Disabled widgets using functions.php....
0
votes
1answer
83 views

Auto Draft Specific Categories Posts after a certain number of Days

I want to put posts from two categories to automatically draft after the number of days like 90 Days from the date of Publish and I created a function with the help of some codes in other forums, but ...
1
vote
1answer
139 views

How to get the Tags on Publish post hook?

Requirement: On the each publish/update post, we need all tags from the post and do some functionality on that. Case 1: Create post, add tags and Publish immediately === WORKS PERFECT === Case 2: ...
0
votes
0answers
119 views

Add custom action to the page listing screen

I'm creating functionality that will clone a published page and create a new draft page from the content. I placed an action link alongside the "Edit | Quick Edit | Trash | View" items that appear ...
1
vote
1answer
34 views

Drafts widget for admin page

The Quick Draft widget on the admin dashboard has an area to create a new post and a list of recent drafts. I'd like a widget like this but with ONLY a list of recent drafts. Surprisingly, I couldn'...
0
votes
3answers
2k views

What differences are there between a Privately Published post and a Draft post?

WordPress has three different post statuses: Published Pending Review Draft It also has three different visibility options: Public Password protected Private When you set a post to Published and ...
0
votes
1answer
66 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
171 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
211 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 ...
1
vote
1answer
356 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
30 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
69 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
29 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 ...
1
vote
0answers
121 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 ...
1
vote
1answer
467 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
36 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
730 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
60 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
373 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' => __( '...
1
vote
1answer
38 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
33 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
52 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
29 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
487 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
33 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
512 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
165 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 ...
5
votes
2answers
287 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
293 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
4k 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
153 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
707 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
570 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 ...
3
votes
1answer
5k 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 ...
-1
votes
2answers
3k 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
173 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
393 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
2k 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
613 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
195 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
12k 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
145 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 ...