Skip to content

Instantly share code, notes, and snippets.

@schurpf
schurpf / .gitignore
Last active August 29, 2015 14:18 — forked from salcode/.gitignore
# -----------------------------------------------------------------
# .gitignore for WordPress
# Bare Minimum Git
# http://ironco.de/bare-minimum-git/
# ver 20150227
#
# This file is tailored for a WordPress project
# using the default directory structure
#
# This file specifies intentionally untracked files to ignore
/*--- waitForKeyElements(): A utility function, for Greasemonkey scripts,
that detects and handles AJAXed content.
Usage example:
waitForKeyElements (
"div.comments"
, commentCallbackFunction
);
@schurpf
schurpf / gist:50fc8d1f9457dd37a366
Last active August 29, 2015 14:07 — forked from yratof/gist:4f312ae162f49876959c
php: wrap acf fields with barley editor
/**
* echo barley field with wrapper, use instead of the_field
* @author schurpf
* @url http://schurpf.com
* @version 0.1
* @date 2014-10-09
* @dependency barley, the_field_without_wpautop
* @param string $field_name your normal ACF field name
* @param boolean $noautop whether to omit wrapping p tags, needs the_field_without_wpautop
* @return none echos out content
@schurpf
schurpf / wp-config.php
Created September 11, 2014 15:19 — forked from philiparthurmoore/save-the-children.php
php: wp debug log for wp-config.php used in http://bit.ly/sch-psd2starker
<?php
/**
* Debugging WordPress things.
*
* All of this belongs in your wp-config.php file.
*
* This will make sure that the code you release is, at a minimum,
* relatively free of PHP notices and warnings.
*
* - WP_DEBUG: This turns on debugging mode.