Most cake toppers come with a stake or some form of attachment that can be inserted directly into the cake. For edible cake toppers, you can adhere them to the cake using frosting or edible glue.