Custom Types and Fields
Custom Types and Fields
Description
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).
Installation
1) Upload the plugin to ‘/wp-content/plugins/’ directory 2) Activate the plugin through the plugins
3) Move the file “sample-types.php” to your active theme directory 4) Update the file with any custom types you want to create
You will still need to create templates to go with your custom types: https://codex.wordpress.org/Custom_Fields https://codex.wordpress.org/Function_Reference/get_post_custom https://codex.wordpress.org/Function_Reference/get_post_meta
Reviews
Changelog
1.0
- Initial build
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