We tested the equal preference ecological trap hypothesis for breeding yellow-bellied sapsuckers (Sphyrapicus varius) along a time-since-harvest gradient (1–5 yr, 16–20 yr, 21–25 yr, and >60 yr) in selection system-logged hardwood forests in Algonquin Provincial Park, Ontario. Yellow-bellied sapsuckers preferred 1–5 year and >60-year-old cuts equally and more than 16–20 year and 21–25-year-old cuts. More-abundant arthropod food and/or higher-quality sap resources may have attracted yellow-bellied sapsuckers to 1–5 year and >60-year-old cuts. Only 52% of pairs raised fledglings in 1- to 5-year-old cuts during years when nest predation by American black bears (Ursus americanus) was common, the incidence of which was negatively related to increased availability of American beech (Fagus grandifolia) nuts from the previous autumn. By contrast, 88% of pairs raised fledglings in all years in >60-year-old cuts. One- to 5-year-old cuts were demographic sinks that represent equal-preference ecological traps in years when nest predation by bears was common, whereas >60-year-old cuts were always demographic sources. High-quality habitat cues for nesting yellow-bellied sapsuckers appear to be retained for 1–5 years after selection system logging but fail to deliver safe nest sites. Cavities excavated in heart-rot-infected nest trees are least likely to be depredated because cavity walls are typically harder and deter entry by depredating bears. Retaining more potential nest trees per ha at harvest (especially American beech with heart-rot) may increase the proportion of sapsucker nests that are excavated in bear-resistant trees, thereby reducing nest predation and increasing fecundity. © 2012 The Wildlife Society.