Hello,
Thick penile discharge could be an infection or irritation of the urethra, inflammation of the prostate or from a sexually transmitted disease like Chlamydia. Chlamydia
is an infection caused by the Chlamydia trachomatis bacterium and
is spread from person-to-person through direct sexual contact. Chlamydia can be passed during vaginal, anal, or oral sex if you do not use a condom every time you have sex.
Please get evaluated for this possibility from your urologist.
I hope it helps.