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 / inmanfeed-template-for-genesis.php
Created November 4, 2014 22:46
Display a Inman news feed on a genesis page.
<?php
/*
* Template Name: Real Estate News
* Description: Display Inman News articles on your site.
*/
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'inmanfeed_do_custom_loop' );
define( 'WPE_POPUP_DISABLED', true );
function wpseo_cdn_filter( $uri ) {
return str_replace( 'http://www.example.com', 'http://cdn.example.com', $uri );
}
add_filter( 'wpseo_xml_sitemap_img_src', 'wpseo_cdn_filter' );
add_filter( 'jetpack_photon_reject_https', '__return_false' );
@bhubbard
bhubbard / gist:c4f99c23bc18b62fe17b
Created December 19, 2014 18:53
Check for Simple Real Estate Pack Shortcodes
SELECT ID FROM wp_posts WHERE post_content LIKE '%[schoolsearch%';
SELECT ID FROM wp_posts WHERE post_content LIKE '%[mortgage%';
SELECT ID FROM wp_posts WHERE post_content LIKE '%[srpmap%';
@bhubbard
bhubbard / gist:8e3ec0747e1db9f2c5bf
Created December 19, 2014 19:05
Find posts using the Local Market Explorer shortcodes
SELECT ID FROM wp_posts WHERE post_content LIKE '%[lme-module%';
@bhubbard
bhubbard / gist:cb5a025d2e04cabd0c3a
Created December 19, 2014 19:40
Search wordpress db for walkscore shortcode
SELECT ID FROM wp_posts WHERE post_content LIKE '%[walk-score-map%';
@bhubbard
bhubbard / gist:4480fb42202ae8fcf442
Created December 19, 2014 22:51
Google Real Estate Maps shortcode
SELECT ID FROM wp_posts WHERE post_content LIKE '%[real_estate_map%';
@bhubbard
bhubbard / gist:2a517176ba2a3396c9b4
Created December 19, 2014 22:52
Check for MLS Calculator and MLS Rates shortcode
SELECT ID FROM wp_posts WHERE post_content LIKE '%[mlcalc%';
SELECT ID FROM wp_posts WHERE post_content LIKE '%[mlrates%';