I need to insert into post a simple form handler, but WordPress' engine deleted my code after saving. how can I fix it?
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
migrated from webmasters.stackexchange.com Jul 20 '12 at 12:18
|
Posts cannot contain PHP code, they get cleaned when you submit form. This is an obvious security precaution. There are plugins that will enable you to do this. For example: http://wordpress.org/extend/plugins/allow-php-in-posts-and-pages/ |
|||
|
|
|
As an alternative to adding your PHP it may be easier to use a plugin like Contact Form 7 to create your form. |
|||
|
|