Skip to content

Instantly share code, notes, and snippets.

@sDLme
sDLme / functions.php
Created September 19, 2018 06:22 — forked from fldtrace/functions.php
Better, Faster, Responsive Images for Divi – Upload in Divi child theme.
<?php
// enable divi functions
add_action( 'wp_enqueue_scripts', 'my_enqueue_assets' );
function my_enqueue_assets() {
wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
}
//add 1440px image size
add_image_size('image_1440', 1440, 9999, false);
@sDLme
sDLme / wp-query-ref.php
Created October 5, 2017 12:14 — forked from luetkemj/wp-query-ref.php
WP: Query $args
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php
*/
$args = array(
#!/usr/local/php5/bin/php
<?php
$domain = null;
if (array_key_exists('1', $argv)) {
$domain = $argv['1'];
$path = str_replace("\n","",`pwd` );
$temlate = <<<TEMPLATE
<VirtualHost *:80>