/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function THEMENAME_content_view_multiple_field($items, $field, $values) { $output = ''; foreach ($items as $index => $item) { $classes = 'field-item'; $classes .= ' field-item-'. ($index+1); $output .= '<div class="'. $classes .'">'. $item .'</div>'; } } return $output; }