Questions tagged [draft]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
232 views

How to change my 3000 Published post status to Draft using PHPMyAdmin

I have to change my all 3000 published post status to draft. one way to do it one by one or another option is to select bulk post... but bulk selecting also takes a lot of time because I have around ...
user avatar
0 votes
0 answers
17 views

Revert a Draft page to its original version

I recently went into my Main Page to make some changes, and my inexperience with the new block mode caused me to mess it up. However, I had saved the messed-up version as a Draft. Now, I want to get ...
user avatar
0 votes
0 answers
148 views

Save a custom field in a custom table when saving a draft

I created a custom metabox with a custom field inside. I attach code. add_action( 'admin_menu', 'mtb_add_metabox' ); function mtb_add_metabox() { add_meta_box( 'mtb_metabox', '...
user avatar
  • 43
0 votes
0 answers
30 views

Elementor shows 404 error when trying to edit a publish CPT post and not with draft CPT post

I have created a CPT that I want to edit with Elementor. Now when I try to edit a draft CPT post with Elementor it works fine but when I try to edit that same post after publishing it, Elementor gives ...
user avatar
0 votes
0 answers
50 views

Updating a custom post status after an expiry date rather than trashing it

I have set up a custom post type of featured products. Within that post type I have a custom date field for an expiry date. Currently when the date expires, the post gets moved to the Trash. I'm ...
user avatar
  • 111
1 vote
0 answers
57 views

Hiding Draft Post In Admin

Does anyone know of a way to hide draft post so that when "All" post is selected, draft post is not included? I tried adding this code to my functions.php file but it lead to an error, I'm ...
user avatar
0 votes
1 answer
263 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 ...
user avatar
0 votes
1 answer
23 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="...
user avatar
  • 245
0 votes
1 answer
58 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 ...
user avatar
0 votes
1 answer
193 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....
user avatar
  • 101
0 votes
1 answer
307 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 ...
user avatar
1 vote
1 answer
423 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: ...
user avatar
0 votes
0 answers
330 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 ...
user avatar
  • 101
1 vote
1 answer
47 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'...
user avatar
1 vote
3 answers
4k 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 ...
user avatar
0 votes
1 answer
155 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 ...
user avatar
3 votes
2 answers
368 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 ...
user avatar
0 votes
3 answers
279 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 ...
user avatar
  • 13
1 vote
1 answer
718 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 ...
user avatar
0 votes
2 answers
35 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 ...
user avatar
2 votes
1 answer
149 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 ...
user avatar
1 vote
0 answers
35 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 ...
user avatar
  • 11
1 vote
0 answers
277 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 ...
user avatar
  • 141
1 vote
1 answer
873 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 ...
user avatar
0 votes
1 answer
40 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!
user avatar
  • 651
0 votes
1 answer
1k 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', ...
user avatar
0 votes
0 answers
98 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 ...
user avatar
  • 293
1 vote
1 answer
678 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' => __( '...
user avatar
  • 31
1 vote
1 answer
93 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 ...
user avatar
  • 469
1 vote
1 answer
44 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 : ...
user avatar
  • 274
0 votes
0 answers
99 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. ...
user avatar
  • 453
0 votes
2 answers
31 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 ...
user avatar
1 vote
1 answer
703 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 ...
user avatar
  • 143
0 votes
1 answer
39 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!
user avatar
1 vote
2 answers
634 views

Remove "Save draft" button without using CSS

Is there a way to remove "Save draft" button without the use of CSS?
user avatar
  • 141
2 votes
1 answer
3k 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 ...
user avatar
1 vote
0 answers
167 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 ...
user avatar
  • 43
5 votes
2 answers
404 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 ...
user avatar
  • 51
1 vote
1 answer
317 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 ...
user avatar
  • 113
4 votes
4 answers
7k 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 ...
user avatar
  • 179
1 vote
2 answers
266 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 ...
user avatar
  • 43
0 votes
1 answer
916 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 ...
user avatar
  • 743
1 vote
1 answer
773 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 ...
user avatar
  • 11
3 votes
1 answer
6k 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 ...
user avatar
  • 215
0 votes
2 answers
4k 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 ...
user avatar
0 votes
0 answers
217 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 ...
user avatar
  • 976
0 votes
1 answer
519 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 ...
user avatar
0 votes
2 answers
3k 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 ...
user avatar
0 votes
1 answer
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 ...
user avatar
  • 277
-1 votes
1 answer
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 ...
user avatar