The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
117 views

'Archive' folder for posts and pages

Of course there is a Drafts section in Post and Pages, but how would I make an Archive section - which would contain previously published posts and page?
0
votes
2answers
146 views

Custom post type draft use wrong template

I have a custom post type called agenda with a custom post template called single-agenda.php. When I have a draft of an agenda post, this uses the content in the template single.php. When I publish ...
1
vote
1answer
11 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
vote
1answer
108 views

Saving Custom Field Data before Publish

When creating a page or a post WordPress lets the content (title, body, featured image) be saved when using Ctrl + S. The Custom Fields do not save in the same way (in this case I'm using Advanced ...
0
votes
1answer
46 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 ...
1
vote
0answers
118 views

Changing status of Published posts which have less Content to “Draft”

function draftpost(){ global $wpdb; $prefix = $wpdb->prefix; $wpdb->query("UPDATE ".$prefix."posts SET post_status='draft' WHERE LENGTH( post_content ) <500"); } ...
1
vote
0answers
80 views

redirect deleted / drafted pages

A client asked me to unpublished a page, which I did. However, I kept it as a draft, just in case they wanted to republish at a future date. My issue is that anyone with this link will hit a 404 ...
0
votes
0answers
33 views

How To Force User to Enter Post Title First When Adding New Post

This is my first ever question here and In a wordpress newbie so please bear with me. Using a plugin, I set a custom upload directory, to save the uploaded media (post images and featured image) in ...
0
votes
0answers
32 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
0answers
34 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 ...
0
votes
0answers
29 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 ...
0
votes
0answers
19 views

Display multiple “save draft button” on a post edit

I am aware of the submit_button() and get_submit_button() function, but can I call a "save draft" button on the same way? I have a very long "edit post page" and would like to display the save draft ...
0
votes
0answers
14 views

wp query return post draft

How can I get wp-query to return a post's draft using the get variables provided when you click preview post in wp-admin. ?preview=true&preview_id=5&preview_nonce=96d5ce0bb5
0
votes
0answers
107 views

Capability to read user's own draft post of CPT

I've got a custom role called 'Gym' and custom post type (CPT) called 'Story'. Every Gym user can create a draft of a story and view their own story drafts. My 'Story' CPT have got the following ...