Skip to content

Instantly share code, notes, and snippets.

building things

Chuck Reynolds chuckreynolds

building things
View GitHub Profile
chuckreynolds / dabblet.css
Created May 7, 2013 — forked from vasilisvg/dabblet.css
A simple menu with a :hover action
View dabblet.css
* A simple menu with a :hover action
html {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
font: 100%/2.5 helvetica, arial;
chuckreynolds / wordpress-wp_query.php
Last active Feb 15, 2018 — forked from billerickson/gist:2047229
Improve performance of the WordPress WP_Query
View wordpress-wp_query.php
$args = array(
// Normal query goes here //
'no_found_rows' => true, // counts posts, remove if pagination required
'update_post_term_cache' => false, // grabs terms, remove if terms required (category, tag...)
'update_post_meta_cache' => false, // grabs post meta, remove if post meta required
chuckreynolds / wordpress-remove-seo-columns.php
Last active Mar 29, 2020 — forked from norcross/remove-seo-columns.php
remove WordPress SEO columns from admin post tables
View wordpress-remove-seo-columns.php
function rkv_remove_columns( $columns ) {
// remove the Yoast SEO columns
unset( $columns['wpseo-score'] );
unset( $columns['wpseo-title'] );
unset( $columns['wpseo-metadesc'] );
unset( $columns['wpseo-focuskw'] );
chuckreynolds / wordpress-filter-admin-published-default.php
Last active Aug 29, 2015 — forked from norcross/filter-pages-admin-link.php
This will make the WordPress admin menu link to posts and pages but with the Published filter active by default.
View wordpress-filter-admin-published-default.php
add_action ( 'admin_menu', 'rkv_filter_admin_published_default' );
function rkv_filter_admin_published_default() {
// call global submenu item
global $submenu;
// edit main link for posts
$submenu['edit.php'][5][2] = 'edit.php?post_status=publish';
View wp-query-ref.php
* WordPress Query Comprehensive Reference
* Compiled by luetkemj -
* Source:
$args = array(
View wp-config-debug.php
* == About this Gist ==
* Code to add to wp-config.php to enhance information available for debugging.
* You would typically add this code below the database, language and salt settings
* Oh.. and *do* make sure you change the path to the log file to a proper file path on your server (make sure it exists).
chuckreynolds / norcross-debug-functions.php
Created Mar 10, 2016 — forked from norcross/norcross-debug-functions.php
my list of debugging functions to keep in an MU file
View norcross-debug-functions.php
Plugin Name: Norcross Debug Functions
Plugin URI:
Description: A set of functions I use on all sites while building
Author: Andrew Norcross
Version: 0.0.1
Requires at least: 3.0
Author URI:
chuckreynolds / Gravity Forms Reset Styles
Created Oct 14, 2016 — forked from forgeandsmith/Gravity Forms Reset Styles
Gravity Forms SCSS reset styles for easy style editing and management
View Gravity Forms Reset Styles
// These styles are made in mind to be used with SCSS or LESS
// If you use these styles, you must go to the Gravity Forms settings in the WordPress back end and set Output CSS to No.
////----- Core Containers
chuckreynolds / functions.php
Created Jun 29, 2019 — forked from tessak22/functions.php
Hero Gutenberg Block using Advanced Custom Fields 5.8 Pro
View functions.php
* Register hero block
add_action('acf/init', 'hero');
function hero() {
// check function exists
if( function_exists('acf_register_block') ) {
// register a hero block