I have been using a wonderful web development tool, Tinkerwell, in my workflow to test and refine queries and code while I build out websites. For those not familiar with Tinkerwell, it is an application that allows you to run and test PHP code and immediately see the results. It is like Tinker for Laravel […]
Hiding Advanced Custom Fields in the Admin
This is going to be a quick tip today. There are times when you may want to use an Advanced Custom Field for development but don’t want it to clutter the admin interface. One scenario that I have run into, which I plan on blogging about in the future, is adding a unique ID to […]
Using an enqueued file’s modified time to break the browser cache
If you’ve been a web developer for a while you’ve likely uttered the phrase, “Empty your cache,” or “Hold shift and click reload” to a user not seeing some of your newly-published changes. When you tell a client to take a look at some revisions, you want them to see the newest version of the […]
Enqueue Scripts Dynamically
I have often found myself building a website where only one or two pages need some JavaScript functionality. It seems like a waste to load something like a Masonry library on every page when it may never be needed. Fortunately, conditionally loading a JavaScript in WordPress is pretty simple. First, though, if you are not […]
Quick Tip – Drag Uploads from Chrome
One little trick that I use often when downloading a file from one location to add to my WordPress library is to simply drag the downloaded file from the bottom of the Chrome window to where I need it. As you download files in Chrome, you will notice that the files are listed along the […]
Quick Tip – Filtering Projects in PhpStorm
I use PhpStorm for most of my web development. It is a great IDE for PHP and WordPress. One thing that I have always found a little strange is its interface for managing projects. It is very… basic. Really, the only features it contains are grouping projects into folders and changing the icons for projects. […]
Using Gravity Forms’ Constant Contact Function to Subscribe Users
I recently was working on a project where the client had a Constant Contact account and Gravity Forms installed on their WordPress site. Using Gravity Forms’ add-on for Constant Contact it was easy to subscribe users to Constant Contact lists for those forms created with Gravity Forms. However, the project was also utilizing The Events […]
Use Tab Modifier Extension to Distinguish Environment
One of the issues I often have when working on a site that has launched is that I often need to switch between the local and production versions of the site. This, of course, means that I keep each location in a different tab so I can easily change between the two. However, because both […]
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 […]
Adding Post Type and Slug to the Body Classes
When I first started working with WordPress, in order to style things on a particular page, I often would use the page or post’s ID to target the styles for that page. After all, out-of-the-box, WordPress gives you a class on the body tag containing the post type and the ID like postid-455 or page-id-525. […]