📄️ Creating fields with code
Creating custom fields with code is suitable if you want to keep everything in your themes or plugins. This way, you can re-use them in many websites and put them under a version control like Git.
Advanced topics that help you use and customize Meta Box to the fullest. Most of them requires working with code.
Creating custom fields with code is suitable if you want to keep everything in your themes or plugins. This way, you can re-use them in many websites and put them under a version control like Git.
Each field contains settings to determine where and how data is loaded and saved. All fields share some common settings, but also offer unique settings per field type. There are also settings from extensions which are explained on each extension docs.
If you're a developer and familiar with changing template file with PHP code, you can use Meta Box helper functions to display fields:
If the existing Meta Box field types are not suitable for your needs, you can create a new field type. This documentation will show you how to create a new field type phone which accepts only format xxx-xxx-xxxx.
Meta Box and extensions can be used as standalone plugins or integrated with other themes or plugins.