The above said details goes in the favour of wound infection
Causes for this may be
1.improper and inadequate dosage of antibiotics
2.improper hygiene in that area
Consult microbiologist and go for culture sensitivity of the yellow discharge/pus.
And according to that use antibiotics regularly,,
The wound infection may go in due course of time