Hello,
iam trying to call some Specific ExtraFields to show in my Category_item.php
First of all i create an array:
<?php
$extraFld = array();
if ($item->extra_fields)
{
$extraFields = json_decode($item->extra_fields, false);
foreach ($extraFields as $key=>$extraField)
{
$extraFld[ $extraField->id ] = $extraField->value;
}
}
?>
than i try to call out one specific position. to show right after my Title with:
<?php echo $extraFld[4]; ?>
for exaple
Title of Category
<extrafield>
Author of Category
..
it does not work... in tag.php everything works just fine.
And yes i have activated ExtraField in category options.