Hi there!
Well, without knowing the relevant clinical details or a detailed clinical evaluation it would be difficult to comment specifically on the situation. While pain/ discomfort is expected for a few weeks after a surgery, prolonged discomfort could occur due to a few secondary issues such as infections, inflammations, prosthesis issues, neuro-muscular causes, spinal issues, referred pain from other regions etc. I would suggest considering a review with your treating orthopedician for a detailed evaluation and suggestion of an appropriate management plan.
Hope this is helpful.
Take care!
This is a sad part that after twice hip replacement also pain persist. Its better to change the doctors. or to take ayurvedic medication.
Leo