jbrinley / WP-Router

Routes paths to callback functions in WordPress
108 stars 27 forks source link

POST request #6

Closed mickesweb closed 11 years ago

mickesweb commented 11 years ago

Hi, Nice plugin, working well if I use it with a GET request (like you sample). But when I try to do a POST request it told's page not found, but it use the template for the route-url, so something is working.. I wonder if you have some more samples, one with post request maybe?

jbrinley commented 11 years ago

For anyone who comes across this, the issue was a form field like:

<input type="text" name="name" />

The "name" overlaps with a WordPress query var, so WP tries to find a post with the submitted name. Changing the name of the field works around the problem.