| 开发者 |
mgibbs189
atshift |
|---|---|
| 更新时间 | 2026年8月4日 03:22 |
| PHP版本: | 5.0 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 |
| 版权网址: | 版权信息 |
CFS()->get(), while adding security hardening, WordPress/PHP compatibility fixes, and practical tools for clearer admin workflows.
Version 3 makes field management much more flexible for content-heavy sites. The redesigned Field Group editor supports nested groups, drag-and-drop editing, responsive layouts, and multilingual admin labels, so large editing screens can be organized in a way that is easier to build, review, and maintain.
Tab Groups, Horizontal Groups, Accordion Groups, Conditional Groups, and Loops help divide complex input screens into focused sections, place related fields side by side, show fields only when they are relevant, and manage repeated content cleanly.
Version 3 also brings native WordPress fields into field groups, including post title, content, save and publish controls, categories, tags, featured image, and post editing screen display controls. Code View, Shortcode fields, role-aware editing controls, and Classic Meta Box Placement add more options for safer, more flexible real-world editing workflows.
For setup instructions, field value output examples, migration notes, and implementation examples, see the atshift Fields documentation site.
Things to know
<?php echo esc_html( CFS()->get( 'my_text_field' ) ); ?>
For rich text fields, use an appropriate HTML sanitizer such as wp_kses_post().
Tab Group notes
Tab Group is a layout field for splitting fields on the post edit screen into tabbed sections.
Place a Tab Group before the fields that should appear in that tab. Another Tab Group starts another tab section.
Horizontal Group notes
Horizontal Group is a layout field for placing multiple child fields side by side on the post edit screen. On narrow screens, the fields stack vertically.
Horizontal Groups are intended to contain multiple normal fields. Tabs, Loops, Accordions, Conditional Groups, and other Horizontal Groups cannot be placed inside a Horizontal Group.
Accordion Group notes
Accordion Group is a layout field for placing child fields inside a collapsible section on the post edit screen. It can be configured to open by default.
Tabs cannot be placed inside an Accordion Group.
Conditional Group notes
Conditional Group is a layout field for displaying different child fields depending on a selected radio button or dropdown choice on the post edit screen.
Child fields can be assigned to condition-specific areas in the Field Group editor. Tabs and other Conditional Groups cannot be placed inside a Conditional Group.
Classic Meta Box Placement notes
Classic Meta Box Placement is a slot field for moving classic third-party meta boxes into a chosen position inside an atshift Fields field group. It does not save CFS field values; saving, nonces, permissions, scripts, and styles remain the responsibility of the original meta box plugin.
Block Editor-only panels are not supported. Native WordPress meta boxes and internal CFS meta boxes are shown as not recommended to move.
The original meta box header is hidden after placement because the atshift Fields field label and notes provide the heading. Display width can be set to side width (320px), 50%, 75%, or 100%; narrow screens always use 100% width.
WordPress native field notes
Post Title, Post Content, Save / Publish, Post Categories, Post Tags, and Featured Image edit the native WordPress objects directly. They are not CFS-only post meta fields.
For Post Categories, child category selection can also select parent categories, and removing a parent selection removes its child selections. If all categories are removed, WordPress' default category is restored.
Security maintenance notes
This package includes local security and compatibility hardening on top of the upstream 2.6.7 codebase.
The maintenance work addresses known vulnerability classes around Loop field code execution, Term field SQL injection, CFS form title / content stored XSS, and existing post updates through CFS forms without normal edit capability checks.
The changes were verified locally against the built-in CFS field types, added field types, and an upgrade path from the original 2.6.7 codebase. This package has also been adjusted for the WordPress.org plugin directory and published through the official WordPress.org SVN release flow. WordPress.org publication is not a substitute for an independent third-party security audit.
Redistribution and license
This maintenance build is distributed under the GNU General Public License version 2 (GPLv2), the same license as the upstream plugin. You may use, copy, modify, and redistribute this package, including modified versions, under GPLv2.
When redistributing this package, keep the GPLv2 license notice, preserve the original author attribution, include the source code, and make clear that this is a maintained and extended build by @shift.
Documentation and support
/wp-content/plugins/.CFS()->get() in your theme templates to display saved field values.No. atshift Fields is an independent, unofficial compatible maintenance and extension build distributed under GPLv2.
In many cases, yes. The plugin preserves the main data structures and API compatibility, but always back up your site and test on staging before replacement.
Yes. It preserves the main APIs used by existing themes, including CFS()->get(), get_field_info(), get_reverse_related(), save(), find_fields(), and form().
The release package includes bundled translation files for ca, de_DE, en_GB, es_ES, fa_IR, fr_FR, hu_HU, it_IT, ja, ko_KR, nl_NL, pl_PL, pt_BR, ru_RU, tr_TR, zh_CN, and zh_TW.
See the atshift Fields documentation site for setup guides, output examples, API notes, and implementation examples.
CFS()->get() formatting.CFS()->get().