WordPress Ajax always returns a 404 error

This was very frustrating to figure out. I spent hours on this issue and discovered your problem is in this input:

<input type="text" name="name" id="name" size="30" value=""/> 

Try changing the input field name to anything but “name”, for example:

<input type="text" name="user_name" id="name" size="30" value=""/> 

Leave a Comment