
外掛標籤
開發者團隊
② 後台搜尋「Recast Table Builder for ACF and SCF」→ 直接安裝(推薦)
原文外掛簡介
Recast Table Builder for Advanced Custom Fields and Secure Custom Fields adds a dedicated Table field type for Advanced Custom Fields (ACF) and Secure Custom Fields (SCF).
Use it to build structured, editable custom data tables directly in the WordPress admin.
Features include:
Add and remove table rows and columns.
Use text cells in the field UI.
Store the full table structure in one ACF/SCF field value.
Works with existing ACF and SCF field group workflows.
This plugin requires Advanced Custom Fields or Secure Custom Fields to be installed and active.
Usage
Create or edit an ACF or SCF field group.
Add a new field and choose the Table field type.
Assign the field group to the post type, page, options page, or block where you want to use it.
Edit your content and add table headers, rows, and cell values in the Recast Table Builder for Advanced Custom Fields and Secure Custom Fields UI.
Save or update the post.
To render the saved table on the front end, fetch the field value with get_field() and pass it to recast_stf_render():
$table = get_field( 'my_table' );
if ( $table ) { echo recast_stf_render( $table ); }
Styling
Recast Table Builder for Advanced Custom Fields and Secure Custom Fields` outputs a small set of default classes:
.recast-table-builder-for-acf-scf-front
.recast-table-builder-for-acf-scf-front__table
.recast-table-builder-for-acf-scf-front__head
.recast-table-builder-for-acf-scf-front__body
.recast-table-builder-for-acf-scf-front__row
.recast-table-builder-for-acf-scf-front__heading
.recast-table-builder-for-acf-scf-front__cell
You can style those classes directly with CSS.
