Except for the candidates for president and vice president, or for a partisan or nonpartisan office for which no primary is required, the names of all candidates who, under this title, filed a declaration of candidacy must appear on the appropriate ballot at the primary throughout the jurisdiction for which they filed.