01 - Preheat oven to 350°F (175°C). Grease and flour a 9x5-inch loaf pan or line with parchment paper.
02 - In a large bowl, whisk together flour, sugar, baking powder, baking soda, and salt.
03 - In a separate bowl, whisk egg, orange juice, oil or melted butter, orange zest, and vanilla extract until well combined.
04 - Pour wet mixture into dry ingredients. Stir gently with a spatula until just combined, avoiding overmixing.
05 - Gently fold in cranberries and nuts, if using, until evenly distributed.
06 - Pour batter into prepared loaf pan and smooth the surface evenly.
07 - Bake for 50 to 60 minutes, or until a toothpick inserted into the center comes out clean.
08 - Let the bread cool in the pan for 15 minutes, then transfer to a wire rack to cool completely before slicing.