Our site’s been using YARPP for a while – and we’re very happy with it – but some posts don’t seem to ever generate related posts. When I look on the Post Edit page, there are plenty of related posts well over any reasonable threshold – my threshold’s at 5, and for one post which shows no related posts I see five over 20 relevance. Changing the display code back to defaults doesn’t help. Other posts seem to be fine. The posts in question don’t seem to be technically any different from the others – no weird code adventures going on or anything, just text and images. Any ideas?
For reference, our display code (modified from the defaults only slightly to use Thesis’s post-images, and which doesn’t seem to be the problem):
Update: I dumped out the related posts query, and the problem seems to be that is that somehow “post_date > ‘2011-10-28′” got into the SQL query. We don’t have that set in the YARPP options, but do we use a “Last Week” filter for another bit of code that pulls up random recent posts at the end of articles. They shouldn’t be mixing, but maybe they are. I’ll let you know what I find.