What is the best way to get a fiction book published?

Victoria U asked: I heard that getting into the fiction world takes a lot of time. The best way I heard to get a fiction book published is to first write a non fiction book and then write a fiction book. Is this true, does it really work this way?