I want to display the content that was created in various date ranges. For Ex: I want to dispaly the all the blogs which were created in past 7 days.
I tried with get_notable_entities() method. I didn't succeed with this. Can any one please suggest me on this.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Matt Beckett@Beck24
Matt Beckett - 0 likes
You must log in to post replies.You want to use one of the elgg_get_entities* functions
http://reference.elgg.org/entities_8php.html#af085c8362e49c4f52d4f1fcf58ca6fb8
look at the parameters:
created_time_lower
created_time_upper
eg.
// this will show all users created in the last week
echo elgg_list_entities(array(
'type' => 'user',
'created_time_lower' => strtotime('-1 week')
));