OneMeta – Custom Meta Fields
OneMeta is a free, open-source WordPress plugin for creating and managing custom meta fields — without the complexity or cost of premium alternatives.
Whether you need simple text fields or advanced repeater groups with conditional logic, OneMeta gives you a clean visual builder and clean PHP output.
✨ Key Features
- Visual Drag & Drop Builder — Build field groups with a beautiful, intuitive interface
- Live PHP Code Preview — See your generated PHP code update in real time as you build
- Export as PHP Code — Export field groups to use in your theme or plugin without OneMeta installed
- Repeater Fields — Create repeatable sub-field groups for complex data
- Conditional Logic — Show or hide fields based on the value of other fields, with AND/OR rule combinations
- REST API Support — Access field data via the WordPress REST API
- Nothing Added to Your Live Site — Field values render as plain PHP with zero extra scripts; jQuery (already bundled with WordPress) powers the Media Uploader and repeater drag-reordering inside the editor only
- 14 Field Types — Everything you need, nothing you don’t
- Modern UI — Clean, polished admin interface
🧩 Field Types
Basic: Text, Textarea, URL, Email, Date
Choice: Toggle, Select, Radio, Button Group
Multiple: Checkbox
Media: Image, File, Gallery
Advanced: Repeater
📖 Helper Functions
Use simple helper functions to retrieve field values in your theme:
$value = onemeta_get_meta( get_the_ID(), 'field_key' );
$value = onemeta_get_user_meta( $user_id, 'field_key' );
🔀 Conditional Logic
Show or hide fields dynamically based on the value of other fields, combining multiple rules with AND/OR. Supports ==, !=, contains, and !contains operators.
📤 Export as PHP
Export any field group as clean PHP code to bundle with your theme or plugin — no dependency on OneMeta required.
🔗 Links
Source Code
OneMeta’s distributed JavaScript and CSS are built from human-readable source using Vite. The complete, uncompiled source — all JavaScript, SCSS, and build configuration — is publicly available at:
https://github.com/fronttheme/onemeta
The /src directory contains all uncompiled source files. To build from source: npm install then npm run build.
