To prevent whoopie pies from sticking together, it's important to ensure that they are completely cooled before stacking or storing. Placing a layer of parchment paper between each pie can also help prevent sticking.