'object', 'subtype' => SITE_ANNOUNCEMENT_SUBTYPE, 'order_by_metadata' => array( 'name' => 'startdate', 'as' => 'integer', 'direction' => 'ASC' ), 'metadata_name_value_pairs' => array( array( 'name' => 'startdate', 'value' => time(), 'operand' => '>' ) ), 'no_results' => elgg_echo('site_annoucements:scheduled:none') ); $content = elgg_list_entities_from_metadata($options); // build page $page_data = elgg_view_layout('content', array( 'title' => $title, 'content' => $content )); // draw page echo elgg_view_page($title, $page_data);