wordpress form submission and the 404 error page

前端 未结 6 906
我在风中等你
我在风中等你 2020-12-31 23:03

I have the following form on a wordpress template page. I\'m getting a 404 error each time i submit the form but I\'m not using any of the reserved workpress parameter names

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-31 23:30

    Problem is that WordPress have some words reserved and it will throw that error when submitting forms:

    Some of the words that I found myself and surfing the web are:

    • Custom post type names
    • taxonomy names
    • "name"
    • "day"
    • "month"
    • "year"
    • "category"
    • "title"

    So be careful when creating a a custom form and try to name your inputs with some prefix. In my case, I had a custom post type called "history" and I was naming the input the same way.

提交回复
热议问题