WordPress Form Tutorial (Part 3)

The form data needs to be validated on the server, even if it’s validated with Javascript on the client. We’ll do that with our wp_form_demo_validate function. But first, we know we’re going to need a method to set error messages in the event we encounter some invalid data. So let’s write that method first.
Read more…

WordPress Form Tutorial (Part 1)

Many plugins are available for WordPress that allow you to create forms through the GUI without writing any code. But many of them are bloated and contain a lot of features you don’t need. They can slow down your website. And sometimes you need a custom form that can’t be created through an existing plugin.

It’s fairly simple to create a form plugin if you know PHP and the basics of plugins. This tutorial will show you how.
Read more…