Month: October 2013
WordPress Image Source Function
It's a little frustrating that WordPress's wp_get_attachment_image_src function returns an array instead of just a URL; instead, the function returns the src, width, and height: <?php list( $src, $width, $height )…
Read MoreImporting Data using WP Migrate DB
We often use WP Migrate DB to migrate our WordPress databases from development to production. While importing a database the other day, I noticed a number of character encoding issues…
Read MoreWordPress Asset Enqueuing
The way JavaScript and CSS are enqueued in WordPress can significantly affect how a site loads in the browser. Using a CDN to host assets, loading JavaScript files in the footer,…
Read MoreEmbed Youtube URLs using ACF
We use Advanced Custom Fields a lot at Convoy. We recently developed a site where we wanted to use WordPress's native embedding with a custom field that is managed by…
Read More