Ok, so Umbraco 7 has a new TagService library for handling tags.
To use all tags used,
var service = UmbracoContext.Application.Services.TagService; var blogTags = service.GetAllTags("default");
To get the specific contents of the GetTaggedContentByTag() tag is a public method,
var sports = service.TagService.GetTaggedContentByTag("Gaming");
It returns a TaggedEntity list and a TaggedEntity object with the EntityId property.
Source Courtesy: Jimbo Jones
source share