Code Snippets

Add Content to Formidable Pro Forms Using PHP

formidable pro tutorial image

This post and example shows how to add a hidden field using PHP, but it’s really a flexible method to add any content to Formidable Pro forms. Now the folks at Formidable Pro made it very easy to add a hidden field from within the form builder, so that’s not really what this post is…

Continue...

Build A WordPress Plugin to Add Google Analytics Code

how to build a wordpress plugin for your google analytics tracking code

When it comes time to add Google Analytics code to your WordPress website, there are a whole lot of options these days. Some themes will give you a field to paste the code. Many plugins have been created around adding giving you various options, whether just for the Google Analytics code or the bigger topic…

Continue...

Hide Content Based On User Role/Capability with Shortcode

WordPress includes many roles and capabilities already, but most people don’t know how to take advantage of them without installing a full blown membership plugin. You don’t need a membership plugin to hide and show content, but you will need to create a custom shortcode… here’s how to do that.

Continue...