You can apply for the 60 days Extension of Stay based on visiting your Thai wife, OR
Apply for the 1 year Extension of Stay based on marriage with a Thai National but that includes meeting the financial and other requirements. When you have this 1 year Extension of Stay, you can apply for a re-entry permit to travel out and back.
BUT to get into Thailand there is also the Thailand pass with the insurance policy, which you have to meet to get access.