Hello,
I want function to get a list of entities:
But I need to get a list of entities where guid != 'page_guid'.
The purpose of this function is to get a list of similar products entities on a page.
When viewing a product, I uses basic elgg_get_entities_from_metadata that will list similar products based on container_guid. But the list also contain the entity being viewed on the page. So I want my list to exclude the currently viewed product. This is why I want to get a list of entities where != 'current page guid'.
Can anybody help me on how to right such a function.
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.
- Kevin Jardine@kevin
Kevin Jardine - 0 likes
You must log in to post replies.look up the documentation for elgg_get_entities - you can add custom where clauses