Linux 软件免费装
Banner图

Fieldstone – Custom Fields, Post Types & Custom Table Storage

开发者 fieldstonewp
更新时间 2026年10月10日 01:01
PHP版本: 8.0 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

taxonomies custom post types custom fields field group custom table

下载

1.1.0 1.0.0 1.4.0 1.2.0 1.3.0 1.3.1

详情介绍:

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 Try it before you install — click Live Preview above to open Fieldstone in a sandboxed WordPress right in your browser. Features 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: Fieldstone Pro adds: 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
  1. Go to Fieldstone → New Field Group, add your fields, and set a location rule (e.g. Post Type is Page).
  2. Edit a matching post — your fields appear in a metabox. Fill them in and update.
  3. Display the values in your theme with the template functions below.
Template functions $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. <a href="<?php echo esc_url( fstn_get_field( 'website' ) ); ?>">Visit</a> Number — returns an int (or float when decimals are enabled), null when empty. ` $<?php echo esc_html( number_format( $price, 2 ) ); ?> ` 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) returnsid,urlandalt;urlreturns the URL string;id` returns the attachment ID. ` <img src="<?php echo esc_url( $img['url'] ); ?>" alt="<?php echo esc_attr( $img['alt'] ); ?>" /> With return formatid, 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. ` <a href="<?php echo esc_url( $file['url'] ); ?>" download><?php echo esc_html( $file['filename'] ); ?> **WYSIWYG** — returns formatted HTML. Print withwp_kses_post()`. ` **Date** — returns a string in the field's return format (defaultY-m-d),null` when empty. ` <time datetime="<?php echo esc_attr( $date ); ?>"><?php echo esc_html( date_i18n( 'F j, Y', strtotime( $date ) ) ); ?> **Color** — returns a hex string:#rrggbb, or#rrggbbaa` when opacity is below 100%. <span style="background: <?php echo esc_attr( fstn_get_field( 'brand_color' ) ); ?>;"></span> Post Link (relationship) — returns a WP_Post object by default, or the post ID with return format id. ` <a href="<?php echo esc_url( get_permalink( $related ) ); ?>"><?php echo esc_html( get_the_title( $related ) ); ?> ` Reading many fields at once ` ` Options, users and terms ` `

    安装:

    1. Upload the plugin to /wp-content/plugins/fieldstone/, or install it through the WordPress plugins screen.
    2. Activate the plugin.
    3. Go to Fieldstone in the admin menu to create your first field group.

    屏幕截图:

    • Import field groups from Advanced Custom Fields in one click, then copy the values ACF saved with a second.
    • The field group editor — fields on a 12-column grid, with per-field widths.
    • Searchable, illustrated field-type picker with 24 free field types.
    • Per-field settings split into General, Validation, Presentation and Conditional Logic.
    • Location rules with and/or logic — post types, templates, user roles, taxonomies and more.
    • Your fields on the post edit screen, with tabs and side-by-side layout.
    • Front-end form built with fstn_form(), with validation.
    • Generate a whole field group with AI from a plain-language description (optional, your own API key).
    • Settings — postmeta mirror, custom-table status and data-on-uninstall controls.

    常见问题:

    How do I display a field in my theme?

    Use fstn_the_field( 'field_name' ) for escaped plain text, or $value = fstn_get_field( 'field_name' ) when you need the raw formatted value (arrays for checkboxes, WP_Post for post links, and so on). See the Displaying each field type section in the Description for a complete example per field type.

    Is there full documentation?

    Yes. Complete documentation for both the free plugin and Fieldstone Pro — covering every field type (how to add and configure it, what it stores, and how to display it in a theme), the template-function reference, Pro loop and relationship guides, and advanced topics — is at https://fieldstonewp.com/docs/.

    Does the AI feature cost money or send my data anywhere?

    The AI features are optional and off by default. They use your own Anthropic API key (pay-as-you-go with Anthropic, typically a few cents per request) and send only the description you type, or — when asking for missing fields — the title and field list of the group you are editing. The request goes directly to api.anthropic.com, never through any Fieldstone server, and your posts and field values are never sent. Tip: create a dedicated API key with a monthly spend limit. See the "External services" section for details.

    Can I move my field groups over from Advanced Custom Fields?

    Yes. With ACF active, an import banner appears on the Fieldstone field-groups screen listing your ACF groups. Importing recreates a group as a Fieldstone definition and creates its storage table; anything that has no equivalent in the free build is reported as a warning rather than silently dropped. Your ACF groups and their data are left exactly as they were, so you can run both while you check the result. Importing brings the field definitions. To bring the values across, press Copy values from ACF in the panel that appears on the same screen. It reads ACF's data without changing it, keeps anything Fieldstone already holds, and can be run again safely.

    Where is my data stored?

    Field values live in dedicated tables (one per field group, one row per post). By default every value is also mirrored into postmeta so other plugins can see it. Turning the mirror off is possible in Settings, but it will hide Fieldstone data from plugins that read postmeta.

    Does deleting the plugin remove my data?

    No. By default all data is kept. There is an explicit opt-in setting ("Remove all data on uninstall") if you want a full cleanup.

    Can I version-control my field definitions?

    Yes. Create a fieldstone-json folder inside your uploads directory (wp-content/uploads/fieldstone-json) and every save writes the definition there as JSON (the folder is protected from direct web access). Definitions in that folder load with priority and can be synced with wp fstn json sync.

    Is it multisite compatible?

    Fieldstone works on individual sites in a multisite network. There is no network-level UI yet.

    Is there a Pro version?

    Yes. Fieldstone Pro adds the advanced field types — Repeater, Flexible Content, Group, relational fields (Post Object, Relationship, User, Taxonomy), Gallery, Clone, Options pages, block bindings and more — all with the same custom-table storage, plus automatic updates and support. The free plugin is fully functional without it. See the "Free vs Pro" section above, or plans and pricing at https://fieldstonewp.com/pricing/.

    Will my SEO, backup and search plugins see Fieldstone data?

    Yes. A postmeta mirror is on by default, so every value is also written to wp_postmeta where the rest of the WordPress ecosystem expects it — SEO variables, backups, exports and search plugins keep working. If you ever need to rebuild the mirror in either direction, use Fieldstone → Tools or wp fstn mirror rebuild.

    Can I use Fieldstone with Elementor, Bricks or other page builders?

    Fieldstone does not ship native page-builder integrations. Because the postmeta mirror is on by default, your Fieldstone values are available through standard custom-field/postmeta lookups, and you can always output them with the template functions (fstn_get_field()) or the [fieldstone field="…"] shortcode.

    Can I run Fieldstone and ACF at the same time?

    Yes — that is how migration works. Keep Advanced Custom Fields active, import your groups into Fieldstone, and check the result before switching. Fieldstone's template functions use the fstn_ prefix (fstn_get_field(), fstn_the_field()), so they do not collide with ACF's functions and both can run side by side.

    Is Fieldstone free for commercial and client sites?

    Yes. Fieldstone is free and open source under the GPLv2 (or later), so you can use it on unlimited personal, commercial and client sites at no cost. Fieldstone Pro is an optional paid upgrade for the advanced field types.

    How do I get help?

    Ask in the support forum, and see the full documentation at https://fieldstonewp.com/docs/.

    更新日志:

    1.4.0 1.3.1 1.3.0 1.2.0 1.1.0 1.0.0