WP-Mix

A fresh mix of code snippets and tutorials

PHP Detect All Versions of IE

Quick code snippet for detecting all versions of good ’ol IE (Internet Explorer).

WordPress wp-config.php tricks

A concise collection of wp-config.php tricks from my WordPress sites to yours.

Proper usage of get_search_query()

This tutorial explains the two ways to properly use WordPress’ template tag, get_search_query(), depending on context. Note that the information provided in this post also applies to the similar tag, the_search_query().

CSS Multiple Media Queries

@media queries are instrumental in creating responsive CSS designs. This tutorial explains how to combine multiple media queries to keep things optimized.

Remove Linked Image Borders in IE

Internet Explorer has a nasty habit of displaying honking blue borders on linked images. This post shows a quick way to disable them using a slice of jQuery.

WordPress Conditional Shortcodes via Ajax

This example builds from the conditional do_shortcode technique to evaluate shortcodes during Ajax requests.

WordPress Conditional Do Shortcode

Quick snippet to call and evaluate WordPress shortcodes conditionally, outside of their normal Post/Page context.

Auto-Height for Ajax-Loaded Content

Here is a jQuery function for automatically setting the height of Ajax-loaded content.

The Right Way to Include Google Fonts in WordPress

This tutorial explains the right (and wrong) way to include (aka enqueue) Google Fonts in your WordPress theme.

PHP Get Actual IP Address

Here are a couple of quick snippets to get the visitor’s actual IP address via PHP.

Detect Chrome, IE, Firefox, Opera, and Safari

How to detect each of the major browsers (Chrome, IE, Firefox, Opera, Safari) client-side via JavaScript.

Set PHP Limits with .htaccess

A quick summary of some of the PHP limits that can be set via the .htaccess file.