Displaying multiple fields in a single line in drupal7 views

Suppose you have three fields (Title, field_city, field_country) to display in your view. By default they will display in three separate lines as follows:

Benjamin Franklin

To display this information in a single line, you need to edit the third field. Expand Rewrite Results, then type in the following:

[Title], [field_city], [field_country]

This will result in the following:

Benjamin Franklin, Philadelphia, USA 

Creating a view that lists nodes tagged by a taxonomy term

Following is what we will be creating. A view that will create a page with a list of nodes (titles + teasers) and a block (with node titles only) of all nodes tagged by a taxonomy term.

Assumption: - You have multiple nodes tagged with term "PHP" - The nodes are of type Article

Go to Structure > Views > Add a new view and fill in the form as follows:

View name: PHP Show Content of type Article tagged with PHP sorted by Newest first check Create a page check Create a block Save & Exit

Then go to Structure > Blocks to enable the block.