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.

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

Conflicting Scripts»

This constant is enabled by default and means that all JavaScript files are loaded with a single call, rather than multiple calls to multiple files (faster loading). Setting it to…
Troubleshooting | Type: Javascript

Connect to Separate Database»

The wpdb object can be used to access any database and query any table. Absolutely no need to be WordPress related, which is very interesting. The benefit is the ability…
DB Query, WP/CP | Type: PHP

CPT to CPT Reverse Query»

Reverse query from different post types associated via ACF relationship field.
ACF, CPT, WP Query | Type: PHP

Menu
We use cookies in order to give you the best possible experience on our website. By continuing to use this site, you agree to our use of cookies.
Accept
Cookies Notice