Best of Luck,
If you had a recent foreclosure, that is going to impact your chance of borrowing any money or getting a mortgage for quite sometime. You should expect to rent for a while.
What I would do if I were you is get a copy of my credit report (you can get a free one every year, online) and see what is on that report. Then call a mortgage lender and ask them what you can do to help improve your credit scores and possibly get any of the negative remarks removed off of your report.
You will have to slowly improve your credit over the course of the next few years until you are eligible to qualify for a mortgage.
There really isn't much else you can do at this point, besides purchasing home on a Land Contract.
Let me know if you have any more questions,