Draft theme editor changes
Draft theme editor changes
Draft theme editor changes
After thorough investigation, I identified the root cause of the issue. TL;DR: A bug in my JavaScript code was causing the post form to be submitted without the necessary publish parameter. Consequently, WordPress interpreted the request as an attempt to save a draft. I resolved the issue by updating the code to include the publish … Read more
Recover deleted text from draft post
Allow Linking to draft posts from classic editor
In Chrome, open DevTools and go to the Network tab. Now click the Fetch/XHR filter. Then, click Publish and watch the Network traffic to see if any errors are being returned. That should give you an indication of where things are going wrong. You might see a 500 error returned on the Publish call.
I rewrote the text of the code for you, there are only a few things I have to tell you. 1 You should put the words you want to search in the $string variable. 2 To solve the problem of finding hello and hell at the same time, I used the preg_match function and the … Read more
Possibly yes, possibly no. I would recommend setting them to private and published so that you can see links working. Drafts cannot be selected as menu links, nor do they have permalinks until they’re published (only the shortlinks and only while logged in), so that is why they aren’t working. If you’re afraid of taking … Read more
You need to change into the code, by default wordpress shows only post which are published. In your case you need to change the $args = array( ‘post_status’ => array( ‘publish’, ‘draft’) ); $query = new WP_Query( $args ); for more info you can look into this link: Another thing you can alter your current … Read more
Quite easily: Go to your Admin Panel –> Posts Select the posts you want to change back to drafts Under Bulk Actions Click on Edit Under Status click on Draft and press Apply Finished If you have more posts, just go through them the same way. 🙂
Try to disable the mod security through your cpanel. Or you can ask your host to disable mod security for you.