Everything in Dynamic FieldKit.
Custom field groups, an HTML generator that turns static mock-ups into real WordPress templates, repeaters, post grids, and full header/footer template management, all under one disciplined plugin.
Field Groups
A field group is a named collection of fields bound to one or more locations. Build it once in the admin, attach it to post types, page templates, post templates, or an options page, and the same group can power as many places as you need.
- 01Location rules (ORed): post type, page template, post template, options page.
- 02Display position:
normal,side,advanced; priorityhigh,default,low. - 03Active/inactive without deleting. Hide the content editor per group if you want.
Field Types
Every common field type, none of the bloat. Sub-field trees inside repeaters use the same set.
Text & input
Text · textarea · number · email · URL · password
Choice
Select · radio · checkbox · true/false
Pickers
Date · time · color
Rich content
WYSIWYG · Raw HTML Pro
Media
Image · file · link (returns { url, label, target })
Structural
Repeater · Post Grid Pro
HTML Generator
Paste your static HTML. The generator walks the DOM, identifies text fields, links, images, icons, lists, and repeater patterns, then emits both a field group and a working PHP template, usually in under 90 seconds.
Deep dive→// 6 fields detected → generated template
<?php while ( have_posts() ) : the_post(); ?>
<h1><?php dfk_the_field( 'hero_title' ); ?></h1>
<?php endwhile; ?>Repeater Fields
An ordered array of rows, each with their own sub-fields. Editor shows collapsible cards. Add row, drag to reorder, delete.
Note: nested repeaters are not supported. Use two field groups bound by a CPT relationship if you need hierarchy.
if ( dfk_have_rows( 'team' ) ) {
while ( dfk_have_rows( 'team' ) ) {
dfk_the_row();
dfk_the_sub_field( 'name' );
dfk_the_sub_field( 'role' );
}
}Raw HTML Field
A dedicated field type for safe inline-SVG and icon markup. Font Awesome <i> tags, Bootstrap icons, small controlled HTML blocks. Sanitised on save through an extended wp_kses allow-list.
- ✓Use for inline SVG, icon
<i>tags, small controlled HTML blocks. - ✕
<script>,<iframe>, everyon*handler, andjavascript:URLs are stripped.
Post Grid Field
Query and render a list of posts inline in any field group. Automatic (query) or manual (picked IDs). Configure post type, taxonomy filters, ordering, layout (grid or list), display fields. Emits its own markup.
<?php dfk_the_field( 'related_posts' ); // emits its own markup ?>Helper Functions
Type-aware, sanitiser-safe helpers that read like English. Every public helper has a cfb_* backward-compatibility alias.
dfk_get_field( $name );
dfk_the_field( $name );
dfk_the_field_html( $name );
dfk_have_rows( $name );
dfk_the_row();
dfk_get_sub_field( $name );
dfk_the_sub_field_html( $name );
dfk_get_option( $name );
dfk_render_header_template();
dfk_render_footer_template();