Support » Miscellaneous » Manually Publishing Posts

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)
  • 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.