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.
- Location rules (ORed): post type, page template, post template, options page.
- Display position:
normal, side, advanced; priority
high, default, low.
- Active/inactive without deleting. Hide the content editor per group if you want.
HTML Generator Pro
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 →
Repeater Fields
An ordered array of rows, each with their own sub-fields. Editor shows collapsible cards — add row,
drag to reorder, delete.
if ( dfk_have_rows( 'team' ) ) {
while ( dfk_have_rows( 'team' ) ) {
dfk_the_row();
dfk_the_sub_field( 'name' );
dfk_the_sub_field( 'role' );
}
}
Note: nested
repeaters are not supported. Use two field groups bound by a CPT relationship if you need hierarchy.
Raw HTML Field Pro
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; <script>, <iframe>, every
on* handler, and javascript: URLs are stripped.
Post Grid Field Pro
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();