A theoretical study is presented of the flow of viscoplastic fluid through a Hele-Shaw cell that contains various kinds of obstructions. Circular and elliptical blockages of the cell are considered together with stepwise contractions or expansions in slot width, all within the simplifying approximation of a narrow gap. Specific attention is paid to the flow patterns that develop around the obstacles, particularly any stagnant plugged regions, and the asymptotic limits of relatively small or large yield stress. Periodic arrays of circular contractions or expansions are studied to explore the interference between obstructions. Finally, viscoplastic flow through a cell with randomly roughened walls is examined, and it is shown that constructive interference of local contractions and expansions leads to a pronounced channelization of the flow. An optimization algorithm based on minimization of the pressure drop is derived to construct the path of the channels in the limit of relatively large yield stress or, equivalently, relatively slow flow.