When your website means business.

Snippets

A collection of (mostly) WordPress-related snippets and references I’ve found useful and worth keeping where I can find them. Feel free to use what you like, and point me to some better snippets or references.

Audio Embed»

See result on nmctr.org
Media | Type: Other

Basic WP-query»

As basic as it gets, for clarity's sake.
WP Query | Type: PHP

Clear Clipboard»

There are glitches with Dreamweaver and possibly with OSX that prevent copying text occasionally. So far the only thing I’ve found that works is to clear the clipboard via Terminal…
clipboard, pasteboard | Type: Other

Clearfix»

Maybe the most widely used clear after float.
CSS | Type: CSS

Compression – wp-config»

Enable compression in wp-config /* Compression */ define( 'COMPRESS_CSS', true ); define( 'COMPRESS_SCRIPTS', true ); define( 'ENFORCE_GZIP', true );
wp-config | Type: PHP