public PostsViewModel(WordPressTerm term)
        {
            _term = term;
            Title = "Posts for Category: " + term.Name;

            UpdateData();
        }
Exemple #2
0
 public static Category FromWordPressTerm(WordPressTerm term, int maxCount)
 {
     return(new Category()
     {
         Id = term.Id,
         Name = term.Name,
         Count = term.Count,
         Description = term.Description,
         Parent = term.Parent,
         Taxonomy = term.Taxonomy,
         Slug = term.Slug,
         TermGroup = term.TermGroup,
         TermTaxonomyId = term.TermTaxonomyId,
         MaxCount = maxCount
     });
 }