How to Validate Gravity Forms Address Fields:
Recently, the need to validate the zip code in a standard address field using Gravity Forms arose for a client. Following the documentation provided for developers with the most recent to date paid Commercial Version, we set up a zip code validation. Seemed easy enough.
The WordPress Custom Post Type. CPT for short. Nothing amazing about it. Many themes include them. Often they are Portfolio, FAQ, Events, or other specifically created posts.
What do we need to do to add a Custom Post Type to a theme without these baked in already?
It is a two step process that requires a proper Child Theme and some code as shown below:
We start by properly using init in the Child Theme’s functions.php
To Use State Abbreviations : Gravity Forms, you will not just need the excellent Gravity Forms Plugin for WordPress, but you will also need a Commercial License to allow the code below to work.
The code is added to a proper Child Theme Functions.php file. If you are not using a Child Theme, I suggest you set one up first. Edits to Parent Theme’s are lost on Theme Updates. (That means if you need to update your theme, you will have to redo this work, so a Child Theme is always advised.)
Zapier and Gravity Forms
I recently had the opportunity to work with a great client on a website redo. The previous developer had decided to use Contact Form 7 to create some rather complex online forms. That did not work out well.
Gravity Forms Addons allow for some very specific tasks to be done on form submittal. An example would be to do a ‘POST’ to a specific URL using FORM, JSON, XML (or other custom methods). The purpose of such would be to integrate your form with one of many third-party applications. The third-party application could also do a GET request to your site running Gravity Forms.
Now, add in Zapier. Zapier is one of the Gravity Form Addons, but is so much more. They create ‘Zaps’. “Zapier is an web automation tool. With Zapier you can build Zaps which can automate parts of your business or life.” An example of using a Zap at Gravity Form submittal would be to send an email, use a Web Hook to POST to a DB (yes, MS SQL and MySQL), push a file upload to Google or OneDrive, among many, many others. There are hundreds of third party developers working with Zapier, even some of the biggest!
I am currently working on a new form for this site that will help my prospective customers find out what we can do for them, what steps are needed, etc. Look for that soon.
You can see a very basic example of a Gravity Form with Conditional Login at the Contact Us Page and also below. Please feel free to use that form to get in touch with Pioneer Web Design about your online forms.
Now that Pioneer Web Design is up, Social Media Integration is being rolled out, and Search Engine Optimization is in full Progress, please allow Pioneer Web Design to thank you for your patronage and to wish all an exceptional Holiday Season!
In this post, Pioneer Web Design shares and intriguing video on the NSA Surveillance Breakdown. Grab a coffee and watch some very interesting stuff.
This video may seem to be just for the techies among us, but we all should watch it. Then make sure to watch the Daily Show take on this – it’s hilariously done! at this link:
Over at Swanson Heritage I was faced with an interesting challenge. As I do enjoy a challenge, I dug right in and solved it.
The issue: A Child Category Sub-Menu:
The site is a Family Tree. It has a deep structure of Categories and Child Categories and Grand-Child Categories making the menu structure a challenge. I have created ‘people’ as categories and used the child category structure to organize them.
In this post, we will learn How to Set Up Browser Caching with WordPress.
As all web dev.’s should, they often run their sites through multiple online website optimization tools. I commonly test with these: Google PageSpeed Insights and GTmetrix. This will also now improve your PageRank with some, as they are using website performance as a metric. (Slow sites will not be well listed in search).
In this post, Pioneer Web Design show how PVWD is Using phpMyAdmin To Get Registered Users Email Addresses.
I have been asked this before: “How can I get all my registered users email addresses?”
One way is to use phpMyAdmin, the MySQL database tool used by most (good) hosts. If you are not both an advanced user and know how to backup your database, do not even continue to read as an error there can destroy your database and therefore your site!
In this post, Pioneer Web Design will show you how to Redirect Search Query in WordPress without a plugin. Steps by step instructions are given.
I was attempting to redirect a search query using the built in search form in WordPress and needed to do some research to get this to work. Attempting on one site, what I thought should work did not! That site uses a theme that adds an action hook to `get_search_query`, (more later) so I just tried on a site that uses the default (child) theme – this one.
In this post, Pioneer Web Design will show you how Using WordPress To Block Comment Spam can be done readily from the WordPress admin panel.
In my humble experience, there are techniques built into WordPress that make Spam comments very much a non-issue:
A) Moderate all comments: Admin Dashboard>Settings>Discussion>Before a comment appears>An administrator must always approve the comment