I’ve got a simple custom page template with a form on it. This page can process the form itself, so the entered data gets submitted there as well, using POST. Submitting the form, however, results in a 404 in my blog’s regular theme (default template). If I leave out all of the data entry elements in the form, so I’ll be submitting an entry form, it somehow works.
You can use this code to reproduce the error if you want to see for yourself.
Any suggestions as to what could be wrong are much appreciated, thanks!
You need to change:
to:
I’m guessing that this is just a test case, but be sure that your final template has calls to
wp_head
andwp_footer
in there.Are you using any of the wordpress reserved words in your html form? If yes that will give you a 404 page error when submitting.
http://codex.wordpress.org/Function_Reference/register_taxonomy#Reserved_Terms