Skip to content

Instantly share code, notes, and snippets.

View bhubbard's full-sized avatar
:octocat:
Hello

Brandon Hubbard bhubbard

:octocat:
Hello
View GitHub Profile
@bhubbard
bhubbard / gist:4788ba89d94bfe0d7826
Created December 21, 2014 20:55
Search for NextGenGallery shortcodes
SELECT ID FROM wp_posts WHERE post_content LIKE '%[nggallery%';
<ifModule mod_php5.c>
php_value zlib.output_compression on
</ifModule>
SetOutputFilter DEFLATE
<IfModule mod_headers.c>
Header set Connection keep-alive
Header append Vary User-Agent env=!dont-vary
</IfModule>
<IfModule mod_expires.c>
@bhubbard
bhubbard / archive-wpseo_locations.php
Last active August 31, 2021 13:41
WordPress Templates for Local SEO by Yoast Multiple Locations CPT
<?php
/*
Our Template Page for Single Locations created with Local SEO by Yoast
Local SEO is good at at formatting this data use the schema format, please make sure you continue to support it.
*/
get_header(); ?>
<h1>Locations</h1>
@bhubbard
bhubbard / gist:e0e8d1ecc8a659fc2948
Created January 12, 2015 23:54
Find shortcodes used for RSS in Page Plugin
SELECT ID FROM wp_posts WHERE post_content LIKE '%[rssinpage%';
<?php
/**
* Plugin Name: Soliloquy - Disable Add Slider Button
* Plugin URI: http://soliloquywp.com
* Version: 1.0
* Author: Tim Carr
* Author URI: http://www.n7studios.co.uk
* Description: Disables the Add Slider Button on Posts, Pages and Custom Post Types. Requires Soliloquy 2.3.9.7+
*/
@bhubbard
bhubbard / ihomefinder-pagetemplate-names.php
Created January 20, 2015 23:35
List of all page template names for Optima Express Plugin
<?php
/*
* Template Name: Property Details
*/
/*
* Template Name: Search Form
*/
sudo npm install -g parker
sudo npm install -g colorguard
@bhubbard
bhubbard / gist:f415c3091384e1cc838f
Last active August 29, 2015 14:14
Find all posts with Optima Express shortcodes (ihomefinder)
SELECT ID FROM wp_posts WHERE post_content LIKE '%[optima_express%'
@bhubbard
bhubbard / gist:5e01ab016bc3a7f735e3
Created January 28, 2015 22:26
Find all posts with Ninja Forms Shortcodes
SELECT ID FROM wp_posts WHERE post_content LIKE '%[ninja_forms%'
@bhubbard
bhubbard / gist:f2fc864743a104d6f859
Created January 28, 2015 23:21
Find all posts with Gravity Forms shortcodes
SELECT ID FROM wp_posts WHERE post_content LIKE '%[gravityform%'