Connecting Contact Form 7 to MailChimp

Connecting Contact Form 7 to MailChimp

For the past few days my spare moments were spent trying to connect Contact Form 7 to MailChimp in WordPress. I had a form on a website that I needed to pass the information to MailChimp effectively (no double-opt-in). Its seems that all the tutorials on the subject are old as this is probably a situational problem. No one tackles it until they need it. Well, I needed it and here is what I found out. Contact Form 7 had a major update in version 3.9 and changed many of the former calls and hooks; which is why the older tutorials don’t work very well. Also, MailChimp has updated their API, there isn’t a large difference as far as what’s needed for this tutorial, but its worth noting. So, here is what I have figured out. Hopefully it will save you a little time. As a point of reference. I like to create a plugin for these types of projects rather than just adding code the the theme’s functions file. Here is what you need: MailChimp PHP API – Download the Mailchimp.php file and the Mailchimp folder and add them to your project folder. MailChimp API Key – In your MailChimp account, go to Account -> Extras -> Api Keys. You’ll have to generate one if you haven’t already. MailChimp List Id – In your MailChimp account, go to the list you want to add contacts to, Settings -> List Name and Defaults. The number you need is in the right hand column, and it does not include the period at the end. Ok, let’s set up the file. First add...

Adding a Logged-Out Class to WordPress Body Tag

Today I found myself in need of a logged-out body class on a WordPress site I’m building. Anyone who has ever coded a WordPress theme has most likely added the body_class() function to their project and it would look something like the following: <body <?php body_class(); ?>> Now the body_class() function allows you to easily add classes directly into the function like the following: <body <?php body_class('class-name');?> > Obviously, the problem arises when you want to conditionally include a class name. I wanted to add a class that identifies a user as not logged into the site. For this I used the following code in my functions.php file. add_filter('body_class','my_class_names'); function my_class_names($classes) { if (! ( is_user_logged_in() ) ) { $classes[] = 'logged-out'; } return $classes; } Obviously, using this logic it will add the “Logged-out” class to the body tag on every page/post/custom taxonomy page across my website. You can include other conditional functions to only show the the class name on certain types of pages such as if a post is in a certain...
5 Ways to Automate Internet Marketing

5 Ways to Automate Internet Marketing

Marketing automation finds its root in mail-merge, and its essential to businesses of all shapes and sizes. Mail-merging inside word processing software will allow you to write a letter one time and it will generate copies for each and every person or business you wish. Well, with internet technologies being dependent on data its easier than ever to automate your processes so that you can set some of your marketing tasks on autopilot in order to focus on others. It has made the workplace much more efficient. In the last position I held we started working out ways in which to do marketing more efficiently; there were 5 of us who all were apart of the marketing department secondarily. We all had other positions and we had to figure out easy ways to get marketing tasks done efficiently and quickly so we could do the other parts of our jobs. We quickly embraced anything that would allow us to automate what we were trying to communicate. We learned a few things along the way, so here are five ways to automate internet marketing. Social Media In my last position we purchased a pro account of HootSuite, for less than $10 per month. There are a lot of other services out there that will do similar things for you. It would show us all of our social media mentions and it would allow us to schedule our posts across many platforms. This was fantastic because once per month we would have our tweets scheduled. It took 2 hours on the first Monday of the month to put them all in,...
5 Ways to Increase Brand Value

5 Ways to Increase Brand Value

Straying away from solely internet marketing and moving into pure marketing and brand management let’s look at ways in to increase the value of your brand. Increasing the value of your brand brings several advantages: customers will choose your brand over price, purchases will be based on emotion rather than quality or price, and brand loyalty will also increase. Its simple to understand, if you increase the value of your brand you can change buying or purchasing habits of consumers. If your brand doesn’t sell something the concept works the same for whatever type of conversion you use. Here are my five ways to increase your brand value. 1. Innovate Stay innovative, its said that when Intel released the 186 processor they had the designs for the 286, 386, 486, 586, 686 and 786 processors ready to release. Staying innovative and creating an environment where you have a plan and a strategy in which your product lines, products or services increasingly become better. How excited does the world get when Apple holds a press conference to release new products? Plan your next steps, execute them with care and watch your brand value increase. 2. Educate I just wrote about educating about your brand; but essentially educating your customer about your products or services is really great customer care. Making it easy for them to make decisions can only help you. Caring for people allows you to connect with them. When people feel like they can connect to you this will help them feel comfortable to choose your brand over someone else in the future, thus increasing brand value. 3. Focus on...

Pin It on Pinterest