Display the caption of a featured image in WordPress

Have you ever wanted to display the caption of a Featured Image in WordPress? I recently had need to do this and figured out a way to accomplish this. When you set the Featured Image for a post in WordPress, you can add additional information for the image: Title, Caption, Alt Text and Description. It […]

Inspecting rollover elements in Chrome and Firefox

For some reason, this was never apparent to me but it is actually pretty straightforward. I used to use tricks to inspect rollover elements like changing the CSS display: none to display: block inline with Firebug. But there is actually a much easier way to test these elements. In Chrome’s Web Inspector, simply use the […]

Adding a Prefixr command to TextMate 2

I was recently looking into how to add a Prefixr command to TextMate 2. For those of you not familiar, Prefixr is a way (created by Jeffrey Way of NetTuts) to take a new-ish CSS property like box-shadow or transform and add all the vendor-specific prefixes automatically. So: transform: rotate(-7deg); becomes: -webkit-transform: rotate(-7deg); -moz-transform: rotate(-7deg); […]

Removing duplicate “Open with” applications on the Macintosh

Starting with Mountain Lion, I have noticed that I will often see the same program listed multiple times when right-clicking on a document to use the “Open With” functionality. For example, I just updated TextMate (which seems to be updated very regularly lately) and my Open With menu looked like this: To fix this problem, […]

Setting UTF-encoding with a PHP header

Sometimes, I need to write a one-off PHP script to export/import data from a database, for example. Since I am not using any kind of front-end interface, I have found that I sometimes have to specifically set the encoding on the page to avoid any extended character issues with the database. I use: header(‘Content-Type: text/html; […]