Attentional templates are stored representations of target features that guide visual search. Target features may remain fixed or change on every trial, requiring sustained or transient templates, respectively. In separate blocks of trials, two sustained templates guide visual search as efficiently as two transient templates. In mixed blocks, however, the transient template interferes with the sustained template, impairing its efficiency in guiding visual search. Here, we hypothesized that the priority of the sustained template would increase when threatened by interference, eventually restoring efficient guidance of visual search. Participants memorized two possible target colors before the onset of the search display. At encoding, we assessed attentional selection of the two possible target colors with the N2pc. During subsequent maintenance, we measured the CDA as an index of resource allocation in working memory. In Experiment 1, the CDA was smaller with sustained than transient templates in separate blocks, but similar in mixed blocks. Thus, the sustained template received more working memory resources when maintained concurrently with an interfering transient template, suggesting that it was prioritized. In Experiment 2, the priority of the sustained template was further increased as it guided visual search in 80% of cases. The N2pc to possible target colors matching the sustained template was enhanced both at encoding and during visual search, thus eliminating interference from the transient template. Therefore, sustained templates are not necessarily less efficient than transient templates. Rather, prioritization through attentional selection at encoding and resource allocation during maintenance may restore efficient guidance of visual search.