Hi!
I follow guide to show in my home page the last 3 news. Is possible add a where clause to show only news that have in db the field 'type' (I add this field in my db) = economy?
function LatestNews($num=3) {
$news = DataObject::get_one("NewsHolder");
return ($news) ? DataObject::get("NewsPage", "ParentID = $news->ID", "Date DESC", "", $num) : false;
}
help please..