Title: Manually Publishing Posts
Last modified: August 19, 2016

---

# Manually Publishing Posts

 *  [dappleyard](https://wordpress.org/support/users/dappleyard/)
 * (@dappleyard)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/manually-publishing-posts/)
 * Hi.
 * I have a queue of posts marked as Drafts, and I’d like to run a Cron Job to publish
   two of these automatically every morning.
 * I just wondered what changes I need to make to the WordPress database with a 
   script in order to make the two posts live?
 * Thanks for your assistance

Viewing 1 replies (of 1 total)

 *  [Michael Fields](https://wordpress.org/support/users/mfields/)
 * (@mfields)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/manually-publishing-posts/#post-957524)
 * You would have to set “post_status” to “publish” and (if using permalinks) you
   will want to set a “post_name”. This can be created by running the “post_title”
   through the `sanitize_title_with_dashes()` function.

Viewing 1 replies (of 1 total)

The topic ‘Manually Publishing Posts’ is closed to new replies.

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 1 reply
 * 2 participants
 * Last reply from: [Michael Fields](https://wordpress.org/support/users/mfields/)
 * Last activity: [17 years, 5 months ago](https://wordpress.org/support/topic/manually-publishing-posts/#post-957524)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
