
內容簡介
Fieldstone 是一款用於 WordPress 的內容建模外掛,讓使用者可以透過乾淨的視覺編輯器建立欄位群組、自訂文章類型和分類法,並以簡單的模板函數在佈景主題中讀取值。它的資料儲存方式獨特,提供更快速的查詢和避免 postmeta 的冗餘。
【主要功能】
• 自訂資料表儲存,每篇文章一行索引
• 提供 24 種免費欄位類型
• 支援從 ACF 一鍵匯入欄位群組
• 前端表單功能,包含驗證和速率限制
• 支援 Local JSON、WP-CLI 和 REST API
• 卸載時資料不會被刪除
外掛標籤
開發者團隊
② 後台搜尋「Fieldstone – Custom Fields, Post Types & Custom Table Storage」→ 直接安裝(推薦)
原文外掛簡介
Fieldstone is a content-modeling plugin for WordPress: build field groups, custom post types and taxonomies from a clean visual editor, then read the values in your theme with simple template functions.
What makes Fieldstone different is where your data lives. Field values are stored in dedicated, indexed database tables — one row per post — instead of scattering several rows per field across wp_postmeta. That means faster queries and no postmeta bloat. A postmeta mirror (on by default) keeps a plain copy of every value where the rest of the ecosystem expects it, so your SEO, backup, export and search plugins keep working untouched.
Already using Advanced Custom Fields? Fieldstone imports your ACF field groups in one click and copies the values ACF saved with a second, warning in plain English about anything that can’t map one-to-one. It only reads your ACF data, so you can run both side by side while you check. The template API is familiar too — fstn_get_field() and fstn_the_field() work the way you’d expect.
Why developers choose Fieldstone
Custom-table storage — one indexed row per post, not several rows per field in postmeta.
24 free field types — from text and select to image, WYSIWYG, oEmbed, link and icon picker.
Import from ACF, data included — field groups in one click, saved values in a second. Deterministic mapping, plain-English warnings, your ACF data only ever read.
Front-end forms — fstn_form() with validation, a honeypot and rate limiting.
Built for deployments — Local JSON, WP-CLI and a REST API.
Your data stays on uninstall — nothing is deleted unless you opt in.
Try it before you install — click Live Preview above to open Fieldstone in a sandboxed WordPress right in your browser.
Features
Visual field group editor — 24 field types: text, textarea, number, range, email, URL, password, select, checkbox, radio, button group, true/false, image, file, WYSIWYG, oEmbed, date, colour, link, icon picker, post link, and the layout types tab, accordion and message.
Custom table storage — one indexed row per post; opt any field into a real database index.
Postmeta mirror — full compatibility with WordPress export/import, backup plugins, SEO variables, and search plugins. A rebuild tool covers both directions.
Location rules — target field groups by post type, page template, specific post/page, page type (front page, child pages…), post status, user role, taxonomy, attachment type, or menu item, combined with and/or logic.
Fields wherever the content is — post screens, user profiles, taxonomy terms, attachments (including the media modal), and navigation menu items.
Screen settings per group — put a group below the editor, above it, or in the side column; go seamless; place labels beside fields; choose where help text sits; order groups; hide WordPress panels you do not want; switch a group off without losing its data.
Front-end forms — fstn_form() renders a group on the front of the site and accepts the submission, with validation, a honeypot and rate limiting. What the form targets is stored on the server, never in the page, so a submission cannot be edited into writing somewhere else.
Shortcode — [fieldstone field="subtitle"] prints a value anywhere, always escaped.
Duplicate, import and export — copy a group or a single field; export groups as JSON or as PHP that registers them from a file; import a JSON export back.
Conditional logic — show or hide fields based on other fields’ values, enforced server-side.
Validation — mark any field required, and set length, range, pattern or format rules with your own error message. Checked in the browser before saving and re-checked on the server, where an invalid field is reported without overwriting the value you already had.
Import from Advanced Custom Fields — bring your existing ACF field groups across in one click, with a plain-English warning for anything that can’t map one to one. Deterministic mapping, no AI involved, and your ACF data is left untouched. Then copy the values ACF saved — on posts, terms, users, comments and options pages — into Fieldstone’s tables with one button, or with wp fstn acf copy-values.
Custom post types & taxonomies — register them from the same editor, with labels generated for you.
Local JSON — every definition (field groups, post types, taxonomies) syncs to files in your theme for version control and deployments.
REST API — opt field groups into the REST API; values appear on post responses and are writable with proper permissions.
WP-CLI — wp fstn json status|sync, wp fstn mirror rebuild, wp fstn table status.
Developer API — fstn_get_field(), fstn_the_field() (escaped by default), fstn_update_field(), fstn_register_field_group(), and a stable extension contract for custom field types.
Generate with AI (optional) — describe a field group in plain language (“a recipe with ingredients, prep time and a photo”) and get the whole group drafted for review: correct types, choices, validation rules, and a location rule. Or open a group you have already started and ask for the fields it is missing — suggestions are added for review and never rename or replace what you built. Bring-your-own Anthropic API key; completely off until you add one. See “External services” below.
Free vs Pro
Fieldstone is fully functional on its own — the free plugin above is everything you need to model content and read it in your theme. Fieldstone Pro is an optional upgrade that adds the advanced, repeatable and relational field types, all with the same fast custom-table storage, plus automatic updates and priority support.
Website: https://fieldstonewp.com/ — Plans & pricing: https://fieldstonewp.com/pricing/ — Documentation: https://fieldstonewp.com/docs/
The free plugin includes:
24 field types (text, textarea, number, range, email, URL, password, select, checkbox, radio, button group, true/false, image, file, WYSIWYG, oEmbed, date, colour, link, icon picker, post link, tab, accordion and message)
Custom-table storage with the postmeta mirror
Location rules, screen settings, conditional logic and validation
Front-end forms, shortcode, REST API, WP-CLI and Local JSON
Import from Advanced Custom Fields
Optional AI field-group generation (bring your own key)
Fieldstone Pro adds:
Repeater — unlimited repeatable rows of sub-fields, stored in their own table
Flexible Content — layout blocks editors can add, reorder and mix freely
Group — bundle (and nest) related fields as one reusable unit
Relational fields — Post Object, Relationship, User and Taxonomy, with two-way links
Gallery — ordered image galleries and richer media pickers
Page Link, Date/Time, Time and Google Map fields
Clone — reuse another group’s fields at any position
Options pages — site-wide settings screens using the same fields
Block bindings — bind core WordPress blocks to your Fieldstone fields
Automatic updates and priority support
Plans scale from a single site to unlimited production sites. Staging and development sites are always free, and every plan comes with a 30-day money-back guarantee. See plans and pricing at https://fieldstonewp.com/pricing/.
How to use
Go to Fieldstone → New Field Group, add your fields, and set a location rule (e.g. Post Type is Page).
Edit a matching post — your fields appear in a metabox. Fill them in and update.
Display the values in your theme with the template functions below.
Template functions
fstn_get_field( $name, $context, $format ) — returns a field value (formatted by default). You escape the output.
fstn_the_field( $name, $context ) — echoes the value already escaped with esc_html(). Best for plain text.
fstn_get_fields( $context ) — returns all values for an object as a name => value array.
fstn_update_field( $name, $value, $context ) — sanitizes and stores a value.
fstn_delete_field( $name, $context ) — deletes a value.
$context defaults to the current post in The Loop. It also accepts a post ID (123), 'option' for site-wide values, 'user_5' for a user, 'term_12' for a term, or a WP_Post / WP_User / WP_Term object.
Displaying each field type
Text / Textarea / Email — returns a string ('' when empty).
URL — returns an escaped URL string.
Visit
Number — returns an int (or float when decimals are enabled), null when empty.
$
True / False — returns a bool.
Featured
Select / Radio — returns the chosen value as a string. A select with “Allow multiple” returns an array of strings.
Checkbox — returns an array of the checked values.
Image — return format is a per-field setting: array (default) returns id, url and alt; url returns the URL string; id returns the attachment ID.
With return format id, use core helpers for responsive images: echo wp_get_attachment_image( fstn_get_field( 'headshot' ), 'large' );
File — same formats as image; the default array carries id, url and filename.
WYSIWYG — returns formatted HTML. Print with wp_kses_post().
Date — returns a string in the field’s return format (default Y-m-d), null when empty.
Color — returns a hex string: #rrggbb, or #rrggbbaa when opacity is below 100%.
Post Link (relationship) — returns a WP_Post object by default, or the post ID with return format id.
Reading many fields at once
Options, users and terms
External services
oEmbed providers
The oEmbed field turns a URL you paste into an embed, exactly as pasting the
same URL into the post editor does. When such a field is displayed, WordPress
asks that provider (YouTube, Vimeo, Spotify, X and the rest of its built-in
list) for the embed markup, and caches the answer. Only the URL saved in the
field is sent, and only to the provider that URL points at. If you never use an
oEmbed field, no such request is ever made.
Anthropic API
Fieldstone can optionally connect to the Anthropic API (api.anthropic.com) to power its two AI features: “Generate with AI” and “Suggest fields”.
What is sent, and when: for Generate, only the field-group description you type into the Generate panel. For Suggest fields, only the title of the group you are editing and the label, name and type of the fields already in it. Both also send the plugin’s field-type instructions. A request is made only when you have saved your own Anthropic API key in Fieldstone → Settings AND click the Generate or Suggest fields button. No site content, posts, field values, user data, or analytics are ever sent, and nothing is sent in the background.
Who provides it: the request goes directly from your server to Anthropic, PBC using your own API key — never through any Fieldstone server. Usage is billed by Anthropic to your account (typically a few cents per generation).
Anthropic terms of service and privacy policy.
Without an API key, no AI features are shown and the plugin makes no external requests at all.
