Note the upgraded forum! If you are experiencing issues logging in, you may need to reset your password which should send an email. If the email doesn't arrive, be sure to check your spam folder just in case.

Filtering post list by related category

edited November 2011 in Modules
In my news model I have related categories just like the blog module and I am able to list the related categories in the post.

What I can't figure out is how to filter a list of results by a specific category.

How can I add this to my current where condition?

$news = fuel_model('news_posts', array('where' => array('silos.name' => 'inside-teachers'), 'limit' => 2, 'offset' => uri_segment(2), 'module' => 'news'));

Comments

Sign In or Register to comment.