Home ownership is not for everyone. Home ownership is a responsibility and a privilege, but not a right. We tried loaning money to lots of folks with bad credit a few years ago and while some were helped, many others have been hurt. I don't know your circumstances, so your situation may be out of your control, but if you currently have bad credit, you may not be able to buy right away.
First, go to work and solve the problems which caused your credit to go bad. Increase your income, cut your expenses and pay your bills on time. Establish this habit and your credit will take a turn for the better.
Second, if there are items on your report you can legitimately dispute, do it. You'll need proof that the accounts are not yours, paid or in error. There are books and services to assist with credit repair, tread carefully there are lots of scams out there. You can work directly with the credit reporting agencies on this for free.
There may be homes available in your area with a lease option. The benefit of this arrangement will really depend on how the terms are arranged and what the market does during the next year or two. This option may get you into a home while you are working on the other issues. Find a local agent with experience dealing with these.
I hope this is helpful and I wish you the best.