For the last 3-4 years, I've had a persistent cough lasting anywhere from a week to a couple of months at a time.
Finally got it under control with the Keto diet.
It's all interconnected. GERD (acid reflux) is caused by sugar and carbs -- for me ,,, YMMV. Medications to control my GERD symptoms causes the flap that closes to regulate the path food takes in the esophagus to remain open. That in turn causes problems swallowing and can trigger constant coughing.
I tried cough meds, cough drops, etc. ANYTHING to stop coughing all day.
I'm no longer taking Famotidine pills for acid reflux, the coughing fits have been gone for 5 months, and no more acid reflux.
I went to the doctor 2 years ago to see about the cough, and all they did was prescribe some very expensive sinus spray: Nasacort. After 2 months with no real improvement, I switched to Afrin. While sinus sprays helped the post-nasal drip that was irritating my throat, they didn't address the cause -- just the symptom.
For what it's worth.