Documentation
Powered by Minitek FAQ Book
Custom fields
The following code can be used to display custom fields in the wall:
$item->jcfields = Joomla\Component\Fields\Administrator\Helper\FieldsHelper::getFields('com_content.article', $item, true);
$fields = [];
foreach ($item->jcfields as $jcfield) {
$fields[$jcfield->name] = $jcfield;
}
To display all fields, use the following code:
To display a specific custom field, use the following code: