How to Pass a PHP Variable to JavaScript – Easy Way

For something seemingly so straight-forward, you would think that the information out there would be a bit better on this subject. Passing a variable from PHP to JavaScript is actually very easy! There are just a couple things you need to keep in mind and some ways to do it to ensure it actually works. I find that putting the … Read More

How to Pause JavaScript – Chrome

When you are developing a website, sometimes you just need to pause JavaScript so that you can work on something. There’s nothing more annoying than that stupid image slider that just won’t sit still long enough for you to troubleshoot it. But how do we pause JavaScript? Internet trolls and people who don’t know any better will tell you to … Read More

Trigger JavaScript from Embedded Wistia Video – WordPress Tutorial

I’ve recently had the opportunity to do some work with Wistia videos embedded into a website and had the challenge of having events trigger from the videos. In my case, I wanted some JavaScript to run after the videos concluded. Specifically, I was working with the Sensei WordPress plugin from WooThemes and wanted to hide the “Complete Lesson” button until the … Read More

Radial Search & Results Page – WordPress Tutorial

Performing a radial search (showing results based on location, zip code, etc) in WordPress is one of the hardest things I’ve had to figure out how to do. It held me back in many projects and was always a source of frustration. After trying many different plugins and tutorials, I have finally come up with a working solution. Today I’m … Read More

Pass PHP Varibale to Javascript – The Easy Way

Young Blanding's Turtle stretches out it's neck.

Taking a variable from PHP and sending it to javascript seems like a really simple thing to do. But it’s not. I’m sure if you ended up here, you’ve tried and tried to get it to work with little success. I’m not sure what the people online are talking about, none of those solutions seem to be functional in most … Read More

Passing a PHP Variable to Javascript in WordPress: The EASY Way

Close Buildings

If you’ve made it here, odds are you’ve already been through the depths of the internet, full of “simple” tutorials talking about how easy it is to pass a variable in your PHP code to Javascript in WordPress. Maybe they even have simple, foolproof examples. The only thing is, they don’t work. WHY don’t they work? Who cares! They are … Read More