I have used the proposed default code which gives me a list of all custom fields within the comments tag:
$item->comments ="";
foreach( $row->customfields as $key => $custom) {
$item->comments .= "<$key>".$row->customfields[$key]['value']."</$key>";
#$item->comments .= "<$key>".$key."</$key>\n";
}
$item->comments .="\n";
But when I try with a single custom field I get nothing:
$item->season = $row->customfields['season']['value'];
foreach( $row->customfields['season']['value'] as $key => $custom) {
$item->season .= "<season>".$row->customfields['season']['value']."</season>";
}
Any tips ?