Create Global Custom fields and save them into WP Options, get them with PHP or use gfc Shortcode
Author: | tommasomeli (profile at wordpress.org) |
WordPress version required: | 3.4 |
WordPress version tested: | 5.7.2 |
Plugin version: | 1.3 |
Added to WordPress repository: | 22-04-2020 |
Last updated: | 24-03-2021
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 100 |
Rated by: | 5 |
Plugin URI: | https://wordpress.org/plugins/global-custom-f... |
Total downloads: | 1 659 |
Active installs: | 300+ |
Click to start download |
Customize WordPress with Global Custom Fields! You can use GCF for example to create HTML + PHP shortcodes, global text fields, to save custom urls and retrieve them wherever you want and much more.
Add global fields in GCF Admin Page Create groups in the ‘Settings’ section and related fields in the ‘Fields’ section. Then edit the fields individually from the ‘GCF’ section.
Recover GCF with php Fields groups / single gcf can be retrieved anywhere within your theme / plugin with the function get_gcf($group, $single = false, $eval = false)
Show single GCF with a shortcode Load and display your single gcf with a shortcode! [gcf group="group_name" field="field_name" eval=false]
Each field is validated before saving. Add non-standard HTML tags and attributes in the “Settings” section if you need.
N.B. Use php “eval” only if you know what you’re doing. Save php fields using pseudo tags [php] ... [/php]
contact me if you have any questions, issues, or suggestions.
And leave a review to grow the project!
Screenshots
ChangeLog