Preheat your oven to 350°F (175°C). Grease the loaf pan or round cake pan and line with parchment paper if desired.
In a medium bowl, whisk together the flour, baking powder, baking soda, and salt. Set aside.
In a large mixing bowl, cream together the softened butter and granulated sugar until light and fluffy using an electric mixer or a whisk.
Add the eggs one at a time, mixing thoroughly after each addition. Then mix in the buttermilk, orange zest, and vanilla extract.
Gradually add the dry ingredient mixture to the wet ingredients, stirring gently until just combined. Be careful not to overmix.
Fold in the cranberries gently, distributing them evenly throughout the batter.
Pour the batter into the prepared pan and smooth the top with a rubber spatula.
Bake in the preheated oven for 45-50 minutes, or until a toothpick inserted in the center comes out clean.
Remove the cake from the oven and allow it to cool in the pan for 10-15 minutes before transferring it to a cooling rack to cool completely.