Skip to content

Instantly share code, notes, and snippets.

<?php
remove_action( 'genesis_loop', 'genesis_do_loop');
add_action( 'genesis_loop', 'lofts_floor_plan_loop' );
function my_facetwp_is_main_query( $is_main_query, $query ) {
if ( isset( $query->query_vars['facetwp'] ) ) {
$is_main_query = true;
}
return $is_main_query;
@sminso
sminso / functions.php
Last active August 29, 2015 14:04
Use shortcodes in widgets
//* Use Shortcodes in widgets | http://thrivewp.com
add_filter('widget_text', 'do_shortcode');
//* Disable Self Pings
function disable_self_trackback( &$links ) {
foreach ( $links as $l => $link )
if ( 0 === strpos( $link, get_option( 'home' ) ) )
unset($links[$l]);
}
//* http://ThriveWP.com
add_action( 'pre_ping', 'disable_self_trackback' );