Our piggy Blodwen had pneumonia caused by chlamydia bacteria, and this was diagnosed by a specialist vet who prescribed doxycycline, after several months of baytril then sulfatrim never quite clearing things up, she had xrays and a specialist referral.
She is now fine but occasionally still has wheezy days when she gets symptom relief medicines- pneumonia can leave the lungs scarred and prone to other infections and just inflammation and irritation some days on hot dry days or cold damp days.
Nebulising as mentioned is a good option, there are also things for symptom relief- bisolvon powder sprinkled on food is a good decongestant for helping on wheezy days, frusol diuretic can help clear fluid from the lungs, loxicom/metacam can reduce inflammation.
Speak to your vet, pneumonia can be treated effectively though finding the right antibiotic for the bacteria causing it can be tricky- doxycycline for example isnt widely prescibed and it completely wiped out Blodwen's appetite and gut bacteria and she needed intensive support feeding and probiotics while taking it- and a lot depends on the piggy, how robust they are generally.
Our Blodwen is a chubby little fighter who after 8 months of various vets and treatments is just fine now except an occasional wheezy couple of days when a bit of symptom relief sorts things out for her.
Healing wheeks for your piggy, there may be a bit of trial and error finding an antibiotic that works, xrays are a good idea to get a look at the lungs, but there are also many symptom relief options available from the vet to explore to keep them breathing comfortably while the underlying cause is treated! X