Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

2 Answers 2

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

share|improve this answer
add comment

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
add comment

Your Answer

 
discard

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