Required Post Fields for WordPress

Required Post Fields helps you ensure that your users & authors don’t publish content by mistake if they forget to do something. It’s common to require content to have a featured image, be categorised or tagged, or to need a custom excerpt. This plugin makes sure that happens.

It adds settings to your admin area to let you make certain post fields required. You can force authors to upload a thumbnail and even set a minimum required image size for it, as well as the ability to require a title, content, custom excerpt, tags and a non default category.

The plugin fully supports any custom post types out of the box and you can also add as many extra validation rules as you like using the plugin’s API!

Features

  • Supports WooCommerce
  • Automatic support for any custom post types
  • Extensible with custom rules using the API
  • Can be embedded in a theme
  • Default settings section can be hidden

Usage

Upload and activate the plugin. Head to the Writing settings page and scroll to the bottom. There you will find boxes to check to make certain fields required when a user adds or edits a post or page.

The default options are:

  • Require title
  • Require content
  • Require custom excerpt
  • Require non default category
  • Require tags
  • Require featured image
  • Minimum size for featured images

alt text

When you add or edit a post and it doesn’t meet the requirements the relevant fields will be highlighted.

alt text

API

For the developers among you (or those brave enough to add a few lines of PHP to your functions.php) there is an API to add/remove your own required fields too, even for custom fields.

Check the README file included in the download for more information on how to extend the default options and add custom validation rules to your posts.

Thanks!

We’re happy to answer any support questions and provide code examples to achieve what you want with the plugin’s API in the comments.

Changelog

1.6.1
        Fixed bug where post meta validation ran twice when adding a new post, caused problem with required thumbnail error

1.6.0
    Fixed a bug with post meta checking, had to happen after the save_post action where most meta is set
    Added the 'soft' mode for validations. Shows a warning instead of an error and allows publishing to continue
    Added the ability to make all required fields set in the backend into warnings

1.5.3
    Modified behaviour so a published post won't be 'unpublished'

1.5.2
    Added icit branding and separated assets out

1.5.1
    Fixed PHP 5.2.x incompatibility
    Improved default error messages

1.5
    Show hidden metaboxes if they contain required fields

1.4
    UX improvements - highlighting error fields and adding links in default message plus option to require tags

1.3
    Added rules for custom post types based on fields the custom post type supports

1.2
    Fixed multi validation and added featured image validation out of the box

1.1.beta
    Added ability to have multiple validations per field
by
by
by
by
by
by