Hello all,
I have create an entity type, let's say with type object and subtype foo . I have associate a metadata value with it. So, I have a lot entities that have a field $e->count. Is it posible to get all those entities with $e->count greater than a number?
I know that I can do this by hand, first get all entities then check the count field and then display. But this approach breaks the pagination.
Thx
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.
- Juho Jaakkola@juho.jaakkola
Juho Jaakkola - 0 likes
- chris pap@christoni2
chris pap - 0 likes
You must log in to post replies.Use the function elgg_get_entities_from_metadata and pass in the metadata_name_value_pairs option like this:
Thank you! it's exactly what I want.