Create a new plugin folder named standardized-custom-content
inside the wp-content/plugins
folder. Next, create an index.php
file and add an information header to it. If you have forgotten the format, just modify the one from the Hello Dolly plugin. The following is our information header:
/* Plugin Name: Standardized Custom Content Plugin URI: http://www.tipsfor.us/ Description: Forces post-types to use a standard list of custom fields with options for checkboxes, dropdowns, and various text fields. Author: Everett Griffiths Version: 0.1 Author URI: http://www.tipsfor.us/ Based on work by Steve Taylor: http://sltaylor.co.uk/blog/control-your-own-wordpress-custom-fields/ */
Save your work and then try to activate the plugin. Remember, test early, test often! The next step is to create a folder called includes
inside the standardized-custom-content
folder. Within the includes
folder, create a new file named StandardizedCustomContent.php
.
Next, declare a new class inside...