While it's an easy drive along the highway from Ljubljana, getting into Piran itself can be a nuisance. If you're driving, you'll need to leave your car in the town's parking lot, just beyond the city limits, which is controlled by boom gates; from here there's a regular shuttle bus to transport you between the parking area and the town center. (You can enter Piran with your vehicle, but you're charged rather heavily for the time you spend on its few cramped roads, and you can forget about finding parking.)
Buses to Piran terminate at the bus station on Dantejeva ulica, located just outside the town proper; a short walk around Piran Port, along Cankarjevo nabrezje, takes you to Tartinijeva trg, at the town center. Trains from Ljubljana terminate in Koper, 10km (6 1/4 miles) northeast of Piran. Piran's helpful Tourist Information Office is in the City Hall building, Tartinijev trg 2 (tel. 05/673-4440). The students who work there can help you with most anything, including trips to Izola, Hrastovlje, and Secovlje Salt-pans, recommended if you have time.
Note: This information was accurate when it was published, but can change without notice. Please be sure to confirm all rates and details directly with the companies in question before planning your trip.