Property sale

I own a home that I put up for sale in late 2022 and moved to another city, leasing a house there.   My home (the only own I own) didn't sell, so I rented it out from January 2023 thru June 30 2023. It finally sold effective July 3.

During the first half of this year I will have received rental income, but also had to rent a home in another city, and now have capital gains.

 

What are the several ways my 2023 income taxes will be affected?