Either modify the foreach loop directly or call extra fields directly by their alias like this:
=== Call specific extra fields in K2 templates ===
So how would you directly output individual extra fields in your K2 overrides? Simple. Just do something like this (e.g. in item.php) to get the extra field name:
$this->item->extraFields->EXTRAFIELD_ALIAS_HERE->name
To get the extra field value you would simply do this:
$this->item->extraFields->EXTRAFIELD_ALIAS_HERE->value
$this->item->extraFields->EXTRAFIELD_ALIAS_HERE->rawValue (for date type only)
Simply replace EXTRAFIELD_ALIAS_HERE with the actual alias of the extra field you wish to output.
In modules, use:
$item->extraFields->EXTRAFIELD_ALIAS_HERE->value
$item->extraFields->EXTRAFIELD_ALIAS_HERE->rawValue (for date type only)
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)