Oven will not ignite

I have a Whirlpool gas range gs563lxss. Recently my oven will not ignite. You hear several clicks and can smell a slight odor of gas but after a few seconds it will not ignite and shuts itself off. I have already replaced the ignitor but it only worked for a day or so. The burner and broiler both work. Any idea of what it could be?