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
contact me if you have any questions, issues, or suggestions.
And leave a review to grow the project!
- Upload the
global-custom-fieldsfolder to the directory
- Activate the plugin using the ‘Plugins’ menu in WordPress.
- Set up the plugin from GCF Admin Page
get_gcf()php function or
[gcf]shortcode to add GCF anywhere! (see more in the ‘Description’ section)
Contributors & Developers
“Global Custom Fields” is open source software. The following people have contributed to this plugin.Contributors
Translate “Global Custom Fields” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
1.3 (25th March,2021)
- WP 5.7 compatibility
1.2 (14th December,2020)
- remove warnings from fields editor
- code editor fixed
1.1 (1th June,2020)
- add Fields editor (with lines and code highlights)
- add extra Tags / Attributes section in settings
- fix PHP eval feature