Questions tagged [draft]
The draft tag has no usage guidance.
106
questions
0
votes
0
answers
15
views
Allow Linking to draft posts from classic editor
I often work with content that has NDA dates applied to it. So i could have a dozen articles ready to publish but need to wait until a specific date to do so. It would be so handy if i could do all of ...
0
votes
2
answers
35
views
when I Try to Create new Post or Page it goes Draft(I can't post Anything)
I have Done Some Debugging is there:
1, Deactivate Plugins
2, Switch Themes
3, Update plugins & themes
4, update the WordPress version
5, in functions.php :
function remove_dashboard_widgets() {
...
0
votes
1
answer
31
views
Set post to draft if matching word is found in the post
Not sure what exactly I'm missing here but I'm trying to set a post to draft if one of the words are detected, it will only publish the post if the user removes the word found within the post. At the ...
1
vote
1
answer
92
views
Problems with draft website pages
I set up all the pages for my website (set as public & DRAFT) (https://9v7.961.myftpupload.com/?page_id=50) - BUT - lots of stuff not working (menu shows no pages, cannot link to Posts, custom ...
0
votes
1
answer
1k
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 ...
0
votes
0
answers
21
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 ...
0
votes
1
answer
240
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 ...
2
votes
0
answers
182
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 ...
0
votes
1
answer
693
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
1
answer
27
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
1
answer
76
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
1
answer
426
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
1
answer
504
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
1
answer
507
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
0
answers
388
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
1
answer
66
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'...
1
vote
3
answers
5k
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
1
answer
190
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
2
answers
447
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
3
answers
295
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
1
answer
910
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
2
answers
40
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
1
answer
229
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
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 ...
1
vote
0
answers
447
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
1
answer
981
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
1
answer
44
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
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',
...
0
votes
0
answers
110
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 ...
1
vote
1
answer
837
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
1
answer
133
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
1
answer
46
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
0
answers
129
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
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 ...
1
vote
1
answer
815
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
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!
1
vote
2
answers
737
views
Remove "Save draft" button without using CSS
Is there a way to remove "Save draft" button without the use of CSS?
2
votes
1
answer
4k
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
0
answers
174
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
2
answers
499
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
1
answer
338
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 ...
7
votes
4
answers
9k
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
2
answers
319
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
1
answer
1k
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
1
answer
883
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
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 ...
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 ...
0
votes
0
answers
240
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
1
answer
617
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
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 ...