It seems that you haven't received an answer to your question. Why does Trulia show a home as sold a few months ago when it is on the market as a foreclosure.
Trulia is an aggregator site. It gets information from various other sites. Originally it take data from the broker's site not the MLS. So it would take all of Coldwell Bankers listings fro example. Now it is geting infomration from the tax records by way of another company that is gathering it and makiing it presentable. The info showing sold informatioin is from the tax records and when a bank forecloses the ownership changes hands and that triggers a tax change which is fed into the system.