On the one hand, attending a wedding can express your blessing to the couple and your concern and support for the family. On the other hand, it is also a social activity, where we can get together with family and friends and share happiness and blessings.
Of course, if there are special circumstances or you are too far away to attend, you can communicate with your family and explain the reasons. Your family will understand and support your decision. The most important thing is to keep in touch with your family and share important moments in your life.