After sex probs help please

The problem is that after sex it burns when I pee but it usually goes away within an hour or two. The second problem is that I feel like pooping right after sex and I sit in the toilet for a while and nothing comes out. It’s just the feeling like I have to go. The pee problem has gone on for not that long and the poop feeling just maybe the beginning of summer. Also me and my boyfriend don’t have sex constantly maybe once every week or every two weeks.