Custom fields for WordPress developers

Theme Option Builder Without Coding.

Drag option panels, meta boxes and custom fields into place, then read their values anywhere in your theme with one function call. No callbacks, no sanitising, no save hooks.

Meta boxes, post types & taxonomies — free Option Builder & Customizer — Pro WordPress 5.6+ · PHP 8.0+

Page Options post type: page
Show Breadcrumb
Breadcrumb Image
breadcrumb-bg.jpg1920 × 480 Replace
Footer Style
DefaultCustomWide
Accent Color
#3362FF

WordPress edit screen

functions.php
add_filter( 'tp_meta_boxes', 'mytheme_page_options' );

function mytheme_page_options( $boxes ) {
  $boxes[] = [
    'metabox_id' => 'page_options',
    'title'       => 'Page Options',
    'post_type'   => 'page',
    'fields'      => [
      [ 'id' => 'show_breadcrumb',
        'type' => 'switch',
        'label' => 'Show Breadcrumb' ],
      [ 'id' => 'footer_style',
        'type' => 'tabs',
        'choices' => [ 'default' => 'Default', …] ],
    ],
  ];
  return $boxes;
}

Or build the same thing visually — no PHP required

Built by ThemePure

Start with something already shipping.

PureFields ships inside ThemePure’s WordPress themes — it is what powers the metaboxes, option panels and repeatable sections their editors work in every day. Here is a slice of the catalogue.

You’ve been wiring custom fields by hand long enough.

  1. add_meta_box()register
  2. render callbackmarkup
  3. sanitizevalidate
  4. save_postpersist
  5. get_post_meta()read

PureFields gives you a builder.

The Metafield Builder in PureFields: saved metaboxes listed on the left, the sections and fields of the selected metabox in the centre, and the full field-type palette on the right.
Drag a field in. It is registered, sanitised, saved and readable — no callback to write.

How it works

Config in. WordPress UI out.

Every field is one array. PureFields turns it into a real control on the edit screen, sanitises it on save, and hands the value back to your theme.

field definition
[
  'id'          => 'breadcrumb_bg',
  'type'        => 'image',
  'label'       => 'Breadcrumb Image',
  'conditional' => [ 'show_breadcrumb', '==', 'on' ],
]
// stores the attachment ID
field definition
[
  'id'    => 'project_shots',
  'type'  => 'gallery',
  'label' => 'Project Shots',
]

$ids = tpmeta_gallery_field( 'project_shots' );
field definition
[
  'id'      => 'button_colors',
  'type'    => 'multicolor',
  'label'   => 'Button Colors',
  'options' => [
    'red'   => 'Red',
    'green' => 'Green',
    'blue'  => 'Blue',
  ],
]
field definition
[
  'id'    => 'block_width',
  'type'  => 'dimension',
  'label' => 'Block Width',
  'unit'  => 'px',
]
Page Optionsimage field
The PureFields image field in the WordPress editor: a selected attachment preview with remove and edit buttons, above an Add Image button.
Page Optionsgallery field
The PureFields gallery field in the WordPress editor: four selected attachments each with a remove button, above an Add Gallery button.
Page Optionsmulticolor field
The PureFields multicolor field in the WordPress editor: three labelled colour swatches — Red, Green and Blue — under one field label.
Page Optionsdimension field
The PureFields dimension field in the WordPress editor: a numeric value of 22 with a px unit selector and a drag slider beneath.

01 · image Free

Opens the WordPress media library and stores the attachment ID.

The PureFields image field in the WordPress editor: a selected attachment preview with remove and edit buttons, above an Add Image button.

02 · gallery Free

Multi-select from the media library, stored as a JSON array of IDs.

The PureFields gallery field in the WordPress editor: four selected attachments each with a remove button, above an Add Gallery button.

03 · multicolor Free

Several named colours behind one label, stored as a keyed array.

The PureFields multicolor field in the WordPress editor: three labelled colour swatches — Red, Green and Blue — under one field label.

04 · dimension Free

A number, a unit and a drag slider — for widths, heights and offsets.

The PureFields dimension field in the WordPress editor: a numeric value of 22 with a px unit selector and a drag slider beneath.

Four things it does properly.

The field system, the Pro tooling, the WordPress-native workflow, and the developer experience underneath all three.

Fifteen field types in a drag-and-drop builder

Repeaters and grouped sub-fields, nested freely

Conditional logic between any two fields

Custom post types and taxonomies from the same screen

Values land in native post meta — nothing proprietary

Explore the fields

Unlimited option panels stored as WordPress theme mods

A visual Option Builder with row and column layouts

Typography, spacing, code, radio image and buttonset fields

Starter templates, or a panel restored from JSON

Bake to PHP — export a panel as a file you can commit

Explore the options

Values are ordinary post meta and theme mods — nothing proprietary

Panels mirror into Appearance → Customize with one checkbox

CSS auto-output writes frontend rules from field values

Custom post types and taxonomies from the same admin menu

Menu slug, dashicon, position and capability are all yours to set

Explore Pro

Register everything in PHP through the tp_meta_boxes filter

Read values with tpmeta_field() and tpmeta_get_option()

Import an existing Kirki or Redux configuration

Scan a theme for the metaboxes it already registers

REST endpoints for the builders, and a reference inside the admin

Explore the API
The Metafield Builder in PureFields: saved metaboxes on the left, the sections and fields of the selected metabox in the centre, and the field-type palette on the right.
The PureFields Pro Option Builder mid-edit: the section list on the left, a row and column layout in the centre, the field-type palette on the right, and Export, Import and Bake to PHP in the toolbar.
The PureFields Panel Settings dialog, showing the option name, menu slug, dashicon picker, menu position and capability, with checkboxes for auto-output CSS to wp_head and for mirroring the panel in the WordPress Customizer.
The Developer Quick Reference screen inside the PureFields admin, with tabs for metafields, option panels, the visual builder, the Customizer and user meta, and a copyable Register a Metabox code sample.

Field explorer

Everything you need.
Nothing you don’t.

Every field below is in the free plugin's builder palette. The three marked Pro are option-panel field types that come with the Pro options framework. Previews are captures of the real control on the WordPress edit screen.

text Free

A single-line input saved as a plain string. Supports a placeholder, a default value and conditional visibility.

Definition

[
  'id'          => 'page_subtitle',
  'type'        => 'text',
  'label'       => 'Page Subtitle',
  'placeholder' => 'Short line…',
]

On the edit screen

Page SubtitleShort line…Returns a string from tpmeta_field().

Free vs Pro

Start free. Go further with Pro.

The free plugin covers the whole metadata workflow — fields, post types, taxonomies and the developer API. Pro adds the theme-options layer that themes need when clients start editing the site themselves.

Capability
PureFields 1.7.3
PureFields Free
Core plugin
Get it
PureFields Pro
Licensed via ThemePure
Get Pro
Core
Unlimited custom meta boxes
Posts, pages & custom post types
Metafield Builder (visual, drag-and-drop)
Post type builder
Taxonomy builder
Export / import as JSON
Fields
Text, textarea, select, checkbox, switch, tabs
Image, gallery & TinyMCE editor fields
Colour picker, gradient, multicolour, date picker
Repeater & grouped sub-fields
Conditional logic between fields
Typography, spacing & code fields
Radio image, radio buttonset & multi-check
Theme options
Options framework (theme_mod storage)
Option Builder (visual panel builder)
WordPress Customizer integration
CSS auto-output to the frontend
Starter panel templates
Developer
tp_meta_boxes filter & template API
Values stored as native post meta
Bake to PHP (export builders as committable files)
Theme scanner (import metaboxes a theme registers)
Kirki & Redux migration
REST API access to builders
Updates & support
Licensed automatic updates
ThemePure support desk
community
Feature split verified against PureFields 1.7.3 source. Pro features unlock once a ThemePure licence is activated in Pure Fields → License.

Pricing

One licence. Pick your term.

PureFields Pro unlocks theme options, Customizer integration and Bake to PHP. Same features either way — choose lifetime or yearly.

Lifetime Starter

$99

License: Lifetime Commercial

  • Lifetime
  • 365 Days Support
  • Unlimited Sites
Get PureFields Pro

Yearly Starter

$39

License: Yearly Starter

  • 365 Days
  • 365 Days Support
  • 1 Site
Get PureFields Pro

PureFields Free

Install. Build. Ship.
Absolutely free.

The free plugin is not a trial. It carries the whole metadata workflow — the visual builder and its full field palette, post types, taxonomies and the developer API — with no field caps and no watermarks.

Unlimited meta boxes on posts, pages and any custom post type.

Fifteen field types in the visual builder, repeaters included — and more through the PHP API.

Conditional logic — show or hide a field based on another field’s value.

Post type and taxonomy builders, plus JSON export and import.

Native storage — values are ordinary post meta, readable with get_post_meta().

The Metafield Builder in PureFields Free: saved metaboxes listed on the left, the sections and fields of the selected metabox in the centre with a repeater row, and the full field-type palette on the right.
Metafield Builder Free

Built for WordPress developers

The WordPress fields you imagined
are one array away.

Define fields once. Use their values anywhere in WordPress.

Read the documentation