Display multiple values of a field in separated rows I'm using drupal 7, and in my node views, I have a field named field_phone to display phone numbers. It is possible for a company to have more than a phone number, so I add some more rows in form edit to add more phone numbers. Instead of displaying all numbers in multiple rows, Drupal automatically puts them all inline inside a &lt;span&gt; tag. There are so many people on google trying to the opposite thing: make them display inline.

So I think that, by default, it displays multiple values in separated lines. How can I get over this stuff?

P.S.: I know I can edit the template file, and make it display the way I want, but it's not cool at all, when I have to edit all the field template files, as all my multiple-values-fields are displaying that way.
1) If you are using a view with field you can click on your field and have a look at 

"MULTIPLE FIELD SETTINGS"

the checkbox "Display all values in the same row" is checked by default. If you uncheck it it's going to show your field in different rows.

2) If you are using a view with content (teaser, full etc..) you can modify the output in different way:

Have a look at Field API
The one you may need is template_preprocess_field()

function templatename_preprocess_field(&amp;$variables) {
    if($variables['element']['#field_name'] == 'field_name') {
        if($variables['items']['0']['#markup'] == 'your_value') {
            $variables['items']['0']['#markup'] = '';
        }
    }
}


If you have Devel Module you can use the dsm() function to see how to manupulate it.

function templatename_preprocess_field(&amp;$variables) {
        if($variables['element']['#field_name'] == 'field_name') {
            dsm($variables['element']);
        }
    }


It will show what's inside $variables['element'] as a drupal message.

3) You can use field.tpl.php and use field-name-[field_name].tpl.php to target only your field. Have a look at theme_field() .

If you want to change all your multiple value field in that way, use the second method without the if statement that targets your field.

Find out the method better fits your needs.