problem getting item with get_item_by_id

Hi,
In the theme we are currently setting up, I try to get a list of items (item-)related with the item currently being displayed. I have no problem getting the ids of concerned items. But get_item_by_id fails returning an item ONLY when not logged (as an admin). Everything is ok when logged on the platform.

Any idea on how to fix that ?

Thanks !

get_item_by_id, along with the other ways Omeka retrieves Items, will not allow you to access non-public items if you're not logged in.

Marking the appropriate items as public is the easiest solution (this is also required to get them to appear in browse or show pages for users who aren't logged in).