Skip to content
Second Cup of Coffee

Category: Javascript

Inserting JavaScript with a Shortcode

Posted on March 30, 2020 | by Scott Tirrell | 1 Comment on Inserting JavaScript with a Shortcode

Have you ever needed to insert a piece of JavaScript into a single post or page? Maybe there is an external contact form from a vendor that you’ve been given a snippet of JavaScript to include? There are a number of ways to do this. You could put a conditional in your template file and…

Read More
Posted in Javascript, PHP, WordPress

Passing PHP variables to JavaScript

Posted on July 25, 2013 | by Scott Tirrell | 3 Comments on Passing PHP variables to JavaScript

I was recently working on a project in CodeIgniter and I was setting numeric variables with constants for things like locations (1 = Maine, 2 = New Hampshire, etc.). This all worked fine but when it came to doing some JavaScript AJAX work I didn’t have access to these constants. One of the advantages to…

Read More
Posted in Javascript, PHP, Web Development

Debugging Google Analytics

Posted on May 9, 2012 | by Scott Tirrell | Leave a Comment on Debugging Google Analytics

I was recently working with Google Analytics and discovered the Google Analytics Tracking Code Debugger. In the past, one of the biggest frustrations I had was that I would make a change and then have to wait until the next day to see if the changes worked. I guess that the time to see results…

Read More
Posted in Javascript, Web Development

Recent Posts

  • WordPress Plugin for the BotMan Web Widget
  • Creating Unique IDs for ACF Repeaters
  • Using Tinkerwell with Local by Flywheel
  • Hiding Advanced Custom Fields in the Admin
  • Using an enqueued file’s modified time to break the browser cache

Recent Comments

  • Scott Tirrell on Creating Unique IDs for ACF Repeaters
  • Mark on Creating Unique IDs for ACF Repeaters
  • Mohan on Conditional Required Contact Form 7 Fields
  • Ari on Inserting JavaScript with a Shortcode
  • Md Akhtarujjaman Shuvo on Hiding the WordPress admin bar on certain pages

Archives

  • February 2021
  • January 2021
  • December 2020
  • July 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • March 2019
  • January 2018
  • October 2017
  • September 2017
  • August 2017
  • June 2017
  • May 2017
  • October 2016
  • March 2016
  • November 2015
  • July 2015
  • June 2015
  • February 2014
  • January 2014
  • July 2013
  • June 2013
  • May 2013
  • March 2013
  • January 2013
  • December 2012
  • September 2012
  • August 2012
  • July 2012
  • June 2012
  • May 2012

Categories

  • CodeIgniter
  • CSS
  • Javascript
  • Macintosh
  • Movies
  • PHP
  • Quick Tip
  • TextMate
  • Uncategorized
  • Unix
  • Web Development
  • WordPress
© 2021 Second-cup-of-coffee