All custom types must currently be created in code since this was the easiest way to create it. The plugin ties in to the standard HTML and Image fields functionality within Wordpress. Select boxes, checkboxes and
standard text fields can also be created.
By having content in the code, you can do things like create dropdowns of other content easily, as well as make migration between environments
easier (example code is supplied).
- Upload the plugin to '/wp-content/plugins/' directory
- Activate the plugin through the plugins
- Move the file "sample-types.php" to your active theme directory
- Update the file with any custom types you want to create
You will still need to create templates to go with your custom types:
http://codex.wordpress.org/Custom_Fields
http://codex.wordpress.org/Function_Reference/get_post_custom
http://codex.wordpress.org/Function_Reference/get_post_meta
1.0
1.1
Fix added for accessing the custom fields in admin
To Do
Currently fields can be left blank - add validation so this does not have to be the case
Add custom icons to examples