Charming was at the wedding. The wedding clearly happens post-taking-back-the-kingdoms, and I firmly believe it’s also after Charming and Snow’s public wedding (though maybe just after the honeymoon).
However, a royal wedding could presumably take some time to happen. And it’s possible that Thomas had to hunt a bit for his bride (as per the Cinderella tale) first.
true, maybe while he hunts for Cinderella, Ana’s mother tries to push her and her sister on the prince…? all these things could have happened during a few years, so that when they finally DO marry, Snow and Charming already were settled.