I am setting up a WordPress site as a CMS and trying to figure out a way to make certain post fields “required” before an author can publish a post.
In particular, I want authors to be required to select a “category” and to set a “featured image”. It’s been suggested that something like this could be done using some Javascript, but to be honest, I’m not entirely sure where to start (and my Javascript skills aren’t the best).
If anyone has an idea as to how this can be done, I can really use the help. Thanks!
Fairly simple using jQuery and global $typenow ex:
I’ve been looking for a suitable solution for this as well. I came across this plugin which will make certain fields mandatory before a post can be published.
http://wordpress.org/extend/plugins/mandatory-fields/
The plugin author has said that: “In the next version of this plugin we plan to mandate ‘Featured Image’ field before posting.”
It has not been updated since July 2011, but there might still be some hope for it 🙂