sandywp / plugins / smart-custom-fields
Smart Custom Fields
Smart Custom Fields is a simple plugin for managing custom fields.
Ready in seconds.
v5.0.8 50,000+ installs WP 6.4+ PHP 7.4+

What you get inside
2 screens-
Smart Custom Fields settings page.
-
Post edit page.
About this plugin
Smart Custom Fields is a simple plugin for managing custom fields.
Features
- Field group loop support.
- Meta data revision support.
- Meta data preview support.
Field Types
- Text
- Textarea
- Radio
- Select
- Checkbox
- WYSIWYG editor
- Image
- File
- Related Posts
- Related Terms
- Color picker
- Date picker
- Datetime picker
- Boolean
- Message
How to get meta data ?
**The return value of each of the following methods is not sanitized. Please sanitize them if necessary. **
https://developer.wordpress.org/apis/security/escaping/
Post meta data
This method can get any meta data.
SCF::get( 'field-name' )
This method can get meta data of any group.
SCF::get( 'group-name' )
This method can get all meta data.
SCF::gets()
User meta data
This method can get any user meta data.
SCF::get_user_meta( $user_id, 'field-name' )
This method can get user meta data of any group.
SCF::get_user_meta( $user_id, 'group-name' )
This method can get all user meta data.
SCF::get_user_meta( $user_id )
Term meta data
This method can get any term meta data.
SCF::get_term_meta( $term_id, $taxonomy 'field-name' )
This method can get term meta data of any group.
SCF::get_term_meta( $term_id, $taxonomy, 'group-name' )
This method can get all term meta data.
SCF::get_term_meta( $term_id, $taxonomy )
Custom options page meta data
This method can get any custom options page meta data.
SCF::get_option_meta( $menu_slug, 'field-name' )
This method can get custom options page meta data of any group.
SCF::get_option_meta( $menu_slug, 'group-name' )
This method can get all custom options page meta data.
SCF::get_option_meta( $menu_slug )
Create custom options page
SCF::add_options_page( $page_title, $menu_title, $capability, $menu_slug, $icon_url = '', $position = null );
Register custom fields by the code.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
gistfile1.php
hosted with ❤ by GitHub
GitHub
https://github.com/inc2734/smart-custom-fields/
Translators
- Japanese(ja) – JOTAKI Taisuke
You can translate this plugin into your language by using GlotPress.
sandywp / also on the shelf
Try another plugin
4.7 · 200K+ installs
Customise dashboard panels and branding, hide menus plus lots more.
4.7 · 100K+ installs
Add Custom CSS to your WordPress site without any hassles.
4.0 · 60K+ installs
A lightweight extension of Advanced Custom Field (ACF) that adds Photo Gallery field to any post/pages on your WordPress website.
Spin up a real WordPress site in seconds.
Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.