I've enabled the related_items plugin and tried to use printRelatedItems() and getRelatedItems() in a theme but they return nothing - getRelatedItems() returns an empty array and printRelatedItems() doesn't print anything.
I've added tags to the image pages I'm testing, and other images share the same tags so I think it should match.
Is there something else I need to do to use the plugin?
Comments
http://www.zenphoto.org/documentation/plugins/_zp-extensions---related_items.php.html#functiongetRelatedItems
printRelatedItems("5", "images");
I also tried specifying all params but it was still blank
We have to try to reproduce it. We are using it with articles on our own site and that at leat for sure works. (the display part is a modification for the theme though but besides that it is the same).
`
Related
``<?php`
`if (function_exists('printRelatedItems')) {`
`printRelatedItems(5, "images");`
`}`
`?>`
Link: http://beta.dualmonitorbackgrounds.com/test4/index.php?album=SubJunk&image=AnonWorld.jpg
I guess I'm doing something obviously wrong but can't see it
I will try to reproduce later today.
You can click the tag and it does the tag search properly like that, but still the related part is empty.
I'll try looking into it more
Is there a reason for disregarding related results from the same album? I think for a lot of people, tags tend to cluster with albums, so it may not be a condition that always makes sense.