WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have some 100 unpublished posts. I want to publish 1 random post every time a cron is run.

Is there a way or plugin to achieve this...

share|improve this question
what are the post times of all the posts? – Ashfame Apr 21 '11 at 6:22
Also, come up with a schedule of how you often you want this action to happen. cron is run on every page load, if you have something scheduled. At that rate all your posts would be published very quickly. Do you want a new post published daily/weekly/twicedaily? All those are standard schedules in WP that would be easy to set up. – goldenapples Apr 21 '11 at 8:25

You can also publish posts in the future. That way you wouldn't even need cron.

share|improve this answer

Check this out Scheduled Draft Publish Plugin for WordPress:

This plugin uses the built-in scheduling feature of WordPress to periodically take a draft post and publish it. You can define the time between occurrences, and choose to have it publish the oldest draft each time, or a random draft. By default, it publishes drafts in any category, but you can define one, or multiple, categories for it to take the drafts from.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.