A hernia is unlikely to cause erectile dysfunction (ED) or affect sexual function directly. However, some people may experience temporary sexual issues after surgery to repair certain types of hernias ...