Preheat the Oven: Preheat your oven to 350°F (175°C). Grease a 9-inch round cake pan or line it with parchment paper.
Prepare the Cranberries: In a small bowl, toss the cranberries with a tablespoon of flour to prevent them from sinking to the bottom of the cake.
Mix Dry Ingredients: In a medium bowl, whisk together the flour, baking powder, baking soda, and salt.
Cream Butter and Sugar: In a large bowl, use an electric mixer to cream the softened butter and sugar until light and fluffy.
Add Wet Ingredients: Beat in the eggs, one at a time, then mix in the sour cream or yogurt, orange juice, orange zest, and vanilla extract until well combined.
Combine Ingredients: Gradually add the dry ingredients to the wet ingredients, mixing just until incorporated. Gently fold in the cranberries.
Bake: Pour the batter into the prepared cake pan and spread it evenly. Bake for 40-50 minutes, or until a toothpick inserted into the center comes out clean.
Cool: Allow the cake to cool in the pan for about 10 minutes, then transfer it to a cooling rack to cool completely.
Optional Glaze: If you want to add a glaze, mix the powdered sugar and orange juice until smooth and drizzle it over the cooled cake.