Generate PHP code for custom post types with Meta Box.
Use the tool online: metabox.io/post-type-generator.
This generator creates code that you paste into your theme. If you want to build post types inside the WordPress admin, use Meta Box Lite.
Meta Box Lite is a free plugin. It combines Meta Box, Meta Box Builder, and all free extensions. With it you can manage:
- Custom post types
- Taxonomies
- Custom fields
- Relationships
All of this uses a visual UI. You do not need to copy and paste code.
Upgrade to Meta Box AIO when you need advanced tools. Meta Box AIO includes all free and premium Meta Box extensions in one plugin.
Examples of premium features:
- Repeatable field groups
- Conditional logic for fields and field groups
- Advanced location rules
- Custom fields for users and taxonomies
- Settings pages and Customizer panels
- Frontend submission forms
- Views to display field data on the frontend
- Custom Gutenberg blocks
- Custom database tables for better performance
This project uses Vite.
Install dependencies:
pnpm installStart the development server:
pnpm startBuild for production (output goes to build/):
pnpm build