FIlter Blog Post by Category

Posted by Community Admin on 05-Aug-2018 16:47

FIlter Blog Post by Category

All Replies

Posted by Community Admin on 19-Feb-2015 00:00

I've run into an issue where I need to filter a list of blog posts by pre-determined categories. I can get a list of all of the blog posts and I can get a list of all of the available categories, but I cannot tell which blog posts belongs in any specific category. I've search this forum and google for sample codes to help me get started but have not gotten any closer to a solution. Does any one have any tips on how to accomplish this?

Posted by Community Admin on 24-Feb-2015 00:00

Hi,

Once you have the categories, you can build the query as described here:http://www.sitefinity.com/developer-network/forums/developing-with-sitefinity-/get-related-news-items-from-tags#mhv_SHCUf0OqnwehOodZ1g. You just need to make sure that all category ids are include in order to get only the items that have them assigned.

Regards,
Atanas Valchev
Telerik

 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

This thread is closed