This Joomla plugin makes it possible to display values from custom user fields in content via shortcodes.
Use the following shortcode syntax in your articles, modules, or other content:
[CF FieldName]
Where "FieldName" is the name or title of the custom user field.
[CF Initials]
[CF MiddleName]
[CF LastName]
[CF PhoneNumber]
[CF CompanyName]
- Copy the
customfieldsfolder toplugins/content/customfields/ - Go to the Joomla administrator interface
- Navigate to Extensions > Manage > Discover
- Click "Discover" to find the plugin
- Install the plugin
- Go to Extensions > Plugins
- Search for "Content - Custom Fields Shortcode"
- Enable the plugin
The plugin has several configuration options:
- Enable Plugin: Enable or disable the plugin
- Guest Text: Text shown to guests (non-logged-in users)
- Default Text: Text shown when the field is empty or does not exist
- Allow HTML Output: Whether HTML is allowed in field values
- Debug Mode: Shows error messages on the frontend
- Processing Contexts: List of contexts where shortcodes are processed
- For Guests: Shortcodes are replaced by the configured guest text (or removed if empty)
- For Logged-in Users: Shortcodes are replaced by the value of the custom field
- If Field Does Not Exist: Shortcode is replaced by default text or remains unchanged
- JSON Values: Values such as checkbox lists are automatically converted to comma-separated text
- Joomla 4.x or higher
- Custom user fields must be created in Users > Fields
- All output is escaped by default (HTML is sanitized)
- Only values from existing custom fields are shown
- Guests do not have access to user data
To use this plugin optimally, create custom fields by:
- Go to Users > Fields
- Click "New"
- Give the field a name such as "Initials"
- Configure the field as desired
- Use
[CF Initials]in your content
This plugin is developed for use in Joomla websites. For questions or issues, first check:
- Whether the plugin is enabled
- Whether the custom field has been created correctly
- Whether the user is logged in (for non-guests)