This question already has answers here: Page returns 404 with POST variables, but not without (2 answers) Closed 5 years ago.admin管理员组文章数量:1420145
I have created my own custom forms plugin in which I have created a form and after submitting I get "Sorry, no posts matched your criteria". The strange thing is when I added form to other 2 pages its working fine.
This question already has answers here: Page returns 404 with POST variables, but not without (2 answers) Closed 5 years ago.I have created my own custom forms plugin in which I have created a form and after submitting I get "Sorry, no posts matched your criteria". The strange thing is when I added form to other 2 pages its working fine.
Share Improve this question asked Jul 15, 2019 at 13:21 Abhilash NarayanAbhilash Narayan 297 bronze badges 1- This sounds like something you'll have to debug yourself, sorry. How are you submitting the form - where are you submitting it to, a REST API endpoint? What's the difference between the pages where it works and where it doesn't? Can you watch the submission in your browser debug tools to see any difference between the pages that work and the one that doesn't? Can you add code to the code that's handling the form submission in the back end to see what's different? – Rup Commented Jul 15, 2019 at 14:09
1 Answer
Reset to default 0I've finally figured out the problem. All the code, in all it's variations was fine and works, except for one tiny thing. The variable '$name' is used by the WordPress system to display the blog name, and as I was using that as my variable for the name field on my form it was causing issues. Who knew.
Anyway, I simply changed it to use '$fullName' and changed the id and name attributes on the form to 'full-name' and everything worked great.
本文标签: pluginsI am Getting Sorryno posts matched your criteria on form submit only for certain page
版权声明:本文标题:plugins - I am Getting Sorry, no posts matched your criteria on form submit only for certain page 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745320521a2653357.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论