The short answer
Use a caption that describes the documented occasion or shared moment without naming a relationship the person wants kept private. An image might truthfully be called "Together in the courtyard, autumn gathering" instead of identifying someone as a step-parent, adoptive relative, former partner or caregiver. Ask the people concerned whether even that broad description could disclose sensitive information. The photograph's emotional value can come through posture, expression and a familiar setting, without requiring the household to publish a family biography for visitors.
What to consider
Avoid vague phrases that secretly imply a specific relationship or an official status that has not been verified. If the subjects prefer no caption, an unlabelled image may be more respectful. Keep a separate restricted source note containing accurate identities where necessary for future family archiving, but do not copy it automatically to a wall label or product example. The photographer's rights and each recognizable person's consent still need attention. A private connection can be celebrated without forcing a public explanation of how the people became family.