跳到内容

Plinth Custom Fields

v1.0.0

Shobhit Verma · 2026年7月10日 上架

A self-contained custom fields manager with repeater support, location rules, and JSON import/export — no third-party dependencies required.

正在使用
10 以下
评分
暂无
累计下载
262
最近更新
2026年7月10日
需要 WordPress 5.8+已测试到 7.0.9PHP 7.4+

贡献者

截图

Field Groups list page
Field Groups list page
Field group editor — adding fields and location rules
Field group editor — adding fields and location rules
Repeater field on the post edit screen
Repeater field on the post edit screen

Plinth Custom Fields lets you build custom field groups and attach them to post types, page templates, specific pages, or post statuses — without depending on any other plugin.

Key features:

  • 12 field types: Text, Textarea, Number, Email, URL, Image, Select, Radio, Checkbox, True/False, WYSIWYG Editor, and Repeater
  • Repeater fields with drag-to-reorder rows and nested sub-fields
  • Location rules with AND/OR logic — show fields only where you need them
  • Import and export field groups as JSON, so you can move configurations between sites
  • Template functions for theme developers: plinth_get_field(), plinth_the_field(), plinth_get_image(), plinth_get_rows(), plinth_have_rows(), plinth_the_row(), plinth_get_sub_field(), plinth_the_sub_field()
  • All data stored in standard wp_postmeta, prefixed with _plinth_ so it never collides with other plugins
  • Zero external dependencies — works entirely on top of WordPress core

For Theme Developers

Once a field group is created and assigned to a location, pull the values into any template file:

<?php
$title = plinth_get_field( 'hero_title' );
$image = plinth_get_image( 'hero_image', null, 'large' );

if ( plinth_have_rows( 'team_members' ) ) :
    while ( plinth_rows_remaining() ) : plinth_the_row(); ?>
        <h3><?php plinth_the_sub_field( 'name' ); ?></h3>
    <?php endwhile;
endif;
?>

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums