Fluent api returning blog posts in draft status?
using (var fluent = App.WorkWith()) var list = fluent.BlogPosts() .Where(b => b.Status == ContentLifecycleStatus.Live) .Get().Take(5);Hello Jeff,
Can you try to set the .Visible attribute to true as well, so that the blog posts can be properly filtered - if you set the Visible attribute to true, you will notify the system to take items that are publicly visible. For example:
var BlogPosts = App.WorkWith().BlogPosts().Where(p => p.Parent.Title == "blog2" && p.Status == ContentLifecycleStatus.Live && p.Visible == true).Get().ToList();Thanks. That worked.